Flexi Pages Widget
Use to list custom post type titles in dropdown? (3 posts)

  1. sstasio
    Posted 4 years ago #

    Hey, Love your plugin. Works great for pages, but I'd also like to show my custom post type titles. For example, I have a list of 220 park custom post types and would like to have a dropbox where a user can select by park name. I looked thru your code, but I am not skilled enough to make the necessary changes. Is this a feature that could be easily implemented? Thanks,



  2. norton
    Posted 4 years ago #

    Same issue... would love to use this for custom post types, too.

  3. cronius
    Posted 4 years ago #

    At line 212 you see

    function flexipages_pageids()
    		global $wpdb;
    		$page_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'" );
    		return $page_ids;

    [Please post code snippets between backticks or use the code button.]

    When I change post_type = 'page' in * I think it should work. But it doesn't...

    I'm also looking for a solution to show the Custom Post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexi Pages Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic