676 pointsLike some sort of WPMU DEV God"I'm helpful
JoseffB
Volunteer support dude
—
7th February 2011
Hi all,
I have a question about adding a custom field to a post type. I want to add a drop down that pulls the article list of a certain post type called experts. Basically I add an article to the experts post typeand I'd like to pull that expert(/article) up in another post type called sectors. how would I pull the article listing up dynamically as a drop down.
I see custom press only allow static fields. How would I go about adding this to my functions.php?
I have a question about adding a custom field to a post type. I want to add a drop down that pulls the article list of a certain post type called experts. Basically I add an article to the experts post typeand I'd like to pull that expert(/article) up in another post type called sectors. how would I pull the article listing up dynamically as a drop down.
I see custom press only allow static fields. How would I go about adding this to my functions.php?
I can give you the code I am using for one of my websites, I'm using it in my custom post type 'portfolio', authors can select an account (also a custom post type) to link to the portfolio item.
It also includes the code for a dropdown box of the Provincie taxonomy (which is added to the accounts post type edit-screen).
I'm using Adminimize to hide the default Provincie block on the edit-screen.
Responses (2)
Member — 7th February 2011 #
I can give you the code I am using for one of my websites, I'm using it in my custom post type 'portfolio', authors can select an account (also a custom post type) to link to the portfolio item.
It also includes the code for a dropdown box of the Provincie taxonomy (which is added to the accounts post type edit-screen).
I'm using Adminimize to hide the default Provincie block on the edit-screen.
http://pastebin.com/kXsS9j1Q
Volunteer support dude — 8th February 2011 #
Just what I needed! thanks!
Become a member