<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Add Dropdown list post</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post</link>
		<description>Gravity Support Forums Topic: Add Dropdown list post</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:23:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/add-dropdown-list-post" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-39057</link>
			<pubDate>Wed, 26 Oct 2011 23:51:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">39057@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Reference: &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/get_posts&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/get_posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It's returning 5 posts because that's the default for the WordPress function &#60;strong&#62;get_posts&#60;/strong&#62;.  To return all posts in the category, make line 62 in your paste look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$posts = get_posts
(&#38;quot;numberposts=-1&#38;amp;post_type=$post_type&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change the -1 there to a specific number to get that number of posts returned.  If you want 10 posts, change -1 to 10.  If you want 17, change the -1 to 17.&#60;/p&#62;
&#60;p&#62;On line 50, yes, you enter the field in your form you want to be populated with this function.&#60;/p&#62;
&#60;p&#62;On line 51, the name of your custom post type is typically lowercase.  If you look in the wp_posts table, the column &#34;post_type&#34; would have the values you can use.  Can you look there to be sure you have the capitalization and spelling exact?&#60;/p&#62;
&#60;p&#62;It's a complex customization, but once you have it done, it will be very nice.  Keep at it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38947</link>
			<pubDate>Wed, 26 Oct 2011 03:08:15 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris and thank you again for your support.&#60;br /&#62;
Now I can not let you view the site because the customer has set his homepage Underconstruction: (&#60;br /&#62;
This is my funcions.php &#60;a href=&#34;http://pastebin.com/kyiZYWsZ&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/kyiZYWsZ&#60;/a&#62;&#60;br /&#62;
What I do not understand in this portion of code is line 50 (in my code), I just enter the id field dropdown?&#60;br /&#62;
Before asking the media again, I also tried the code in this post by Carl Hancock &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/automatically-populate-a-dropdown-with-post-titles&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/automatically-populate-a-dropdown-with-post-titles&#60;/a&#62; # post-2646, and with this method i can see the first 5 post but does not filter by category: (uff! i admire your work and I hope to solve the problem! THANKS&#60;br /&#62;
Regards&#60;br /&#62;
Andy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38936</link>
			<pubDate>Tue, 25 Oct 2011 21:54:57 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38936@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please post your functions.php again at pastebin.com or pastie.org and also post a link to your site with the form active so we can see what's going on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38882</link>
			<pubDate>Tue, 25 Oct 2011 10:52:27 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38882@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the support Chris! now no longer show the blank page but when I enter my ID on this line $ dropdown_field dropdown = myid; ($ dropdown_field = 8) The dropdown don't resituisce no results! : ( can not figure out where i wrong: (thanks again for your support&#60;br /&#62;
Regards&#60;br /&#62;
Andy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38869</link>
			<pubDate>Tue, 25 Oct 2011 09:46:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38869@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Couple problems in that file.  Please use this to replace that file completely.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/PYKJG2yZ&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/PYKJG2yZ&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;SAVE A BACKUP of your old file, just in case (the pastie.org will serve as a good backup.)&#60;/p&#62;
&#60;p&#62;One problem was a missing closing brace.  Another problem which would have showed up later: you pasted the code from David Smith in twice, with the same function names.  If you want to use the functions more than once, you will need to rename the function the second time you use it.&#60;/p&#62;
&#60;p&#62;Give this a shot: you should at least get rid of the white screen.  Then we can work from there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38851</link>
			<pubDate>Tue, 25 Oct 2011 06:03:32 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;All you do is great! Thank you for having responded to me.&#60;br /&#62;
I have a problem, I followed the post that I have mentioned but I can not change the funcion.php of my theme!&#60;br /&#62;
When  insert the code in the file, (this code &#60;a href=&#34;http://pastie.org/1617402&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1617402&#60;/a&#62; ) the site returns me the blank page.&#60;br /&#62;
I think it's due to poor implementation of the code (I'm sorry but I am a beginner) This is my code : &#60;a href=&#34;http://pastie.org/2755267&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2755267&#60;/a&#62; Could you tell me where  wrong? Thank you!&#60;br /&#62;
regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38781</link>
			<pubDate>Mon, 24 Oct 2011 13:38:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38781@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Andy.  You caught us on the weekend and we're back online now.  &#60;/p&#62;
&#60;p&#62;Sounds like you want to pre-populate a drop down list with all the posts written by the user.     This might help:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/pre-populate-dropdown-from-title-field-of-custom-post-type#post-19550&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/pre-populate-dropdown-from-title-field-of-custom-post-type#post-19550&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There is some code posted by David Smith to retrieve posts to populate a drop down. You will use the same process, but your loop will limit the posts to those written by the logged in user.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38744</link>
			<pubDate>Mon, 24 Oct 2011 11:52:37 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38744@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;no one can help me please?&#60;br /&#62;
Regards&#60;br /&#62;
Andy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38708</link>
			<pubDate>Mon, 24 Oct 2011 02:14:09 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38708@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, I still have not found the solution, you can help me?&#60;br /&#62;
regards&#60;br /&#62;
Andy
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andyunix on "Add Dropdown list post"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-dropdown-list-post#post-38680</link>
			<pubDate>Sun, 23 Oct 2011 10:54:37 +0000</pubDate>
			<dc:creator>Andyunix</dc:creator>
			<guid isPermaLink="false">38680@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Good evening and congratulations for the great plugin!&#60;br /&#62;
Let me explain my need: in a normal form, can I insert a drop down menu that contains the list of all articles written by the user logged in? If this is not possible, you can add the list of posts equal to that for the categories? Thank you very much, I look forward to your response!&#60;br /&#62;
thanks.&#60;br /&#62;
 Andy.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
