• Resolved ALDesigner

    (@aldesigner)


    I use the CPT UI plugin to create tons of custom post types on the go. I recently created a News type on a blog for a client. They want to show the News feed on a dedicated page, while keeping all of the blog posts that aren’t News on the homepage feed. I created a Page and named it “News Articles” and used the following code for this plugin:

    [display-posts post_type="news" posts_per_page="5"]

    The News Article page is empty. It has a “read more” button for some reason, and the ‘News Article’ heading, but no posts whatsoever. There are a handful of test News posts, but the feed is not populating.

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    There’s only two possible reasons I can think of for your issue:

    1. The post type doesn’t actually have a slug of ‘news’. When you go to News > Add New, look in the URL and make sure it says ?post_type=news

    2. Something in your theme or a plugin is modifying WordPress queries and making this query not work. Try disabling plugins and switching themes to eliminate possible conflicts.

    Thread Starter ALDesigner

    (@aldesigner)

    I disabled all of my other plugins and the problem resolved. I will have to systematically enable them and find the culprit.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Won't display custom post types created by CPT UI plugin’ is closed to new replies.