Support » Plugin: Custom Content Type Manager » Trouble grabbing CCT entries via WP_QUERY()

  • macattack2k


    I like your CCTM plugin best of any of the CCT plugins. Great work!

    Issue However, I’m having some trouble grabbing CCT posts via WP_QUERY() (or just on the home page of my blog).

    Specifics I created a CCT: ‘news_article’. The posts display fine when you browse to the permalink but they do not appear in WP_QUERY results (I would like to query by post_type) or on the home page. I looked in the database and sure enough, the post was created with ‘post_type’=’news_article’ so it looks good but it simply won’t get pulled.

    Is this expected functionality? If so, how do I get these CCT posts to behave like regular posts?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor fireproofsocks


    Thanks. Yeah, the WP_Query and the other WP functions designed to get custom content types pretty much suck. It drives me crazy, man, truly… WP has a nice interface, but some of the architecture is truly juvenile and stupid and is very much deserving of a dick punch (ahem… excuse me).

    I recommend my other plugin: Summarize Posts

    It was designed to deal with exactly the types of problems you have described (in a nutshell, it compensates for the fact that WordPress’ built-in functions suck).

    There are a few things you should watch out for with custom post types (besides WP’s attempt to thwart them at every turn): stuff like whether or not it is marked as public will affect the queries to retrieve them. Doublecheck that stuff before going too far down the rabbit hole.



    OK, wow, thanks for the explanation. It was driving me crazy as well. I was going deeeep into the plumbing and I still couldn’t figure it out, which just led to me doubting myself and double/triple checking things. Glad I stepped away for a day.

    I’ll definitely check out your plugin. I glanced at it before and was like “uh, isn’t that the same thing as WP_QUERY?… I can do this myself.” Well now I know.


    Plugin Contributor fireproofsocks


    Yeah… one of the other things with the Summarize Posts plugin is its support for custom fields and it’s better handling of searching based on taxonomies. Hope it helps you out!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble grabbing CCT entries via WP_QUERY()’ is closed to new replies.