• Resolved cfadminwp

    (@cfadminwp)


    Hi,

    I’m using Custom Post Types UI and am trying to display them with Custom Content shortcode, but can’t seem to get custom post types that I’ve made to work with CCS. Do you have any suggestions?

    I’m able to get regular posts and pages to load with the shortcodes, which indicates to me that something is not set right with the Custom Post Type UI for them to function appropriately.

    When I look at content structure list in CCS, no pages are showing up for my custom post types, even though I have some entered. So I’m guessing that’s the issue, but not sure which thread to put this on. I can see that my custom post types posts are set to zero, but all other post types that are native (and some installed plugins like a calendar) are working fine (accumulating posts).

    I am also using Headway.

    Thank you!

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/
    https://ww.wp.xz.cn/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We register the post types on the init hook, with priority 10, which is default, so I’m not immediately able to determine why things aren’t working for you.

    Going to test out on a local install quick to see if I can find anything.

    Can you provide the shortcodes you’re trying with, so that I can best match what you’re trying?

    Thread Starter cfadminwp

    (@cfadminwp)

    Hi!
    Here is an example, I used Announcements as my custom post type name.

    Shortcode from Custom Content Shortcodes Plugin:

    [loop type=”announcements” paged=”5″]
    <h3>[field title-link]</h3>
    [/loop]

    FYI: It works with post. I’ve tried announcement and annoucements (just in case one of them worked … it should be announcement).

    Thank you for the quick reply!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Still curious and not sure. I pasted what you have above into a page and the text tab, changed “announcements” to a post type I had locally registered via CPTUI, and hit save.

    Went to view the page on the frontend and it showed the 2 posts in that post type just fine, linked and titled. Added a new post in the post type, published it, and then refreshed the page, and it showed up like expected.

    Are you certain that “announcements” is the slug you chose for the post type? That’s the only thing I can think of that would be hindering this.

    Thread Starter cfadminwp

    (@cfadminwp)

    Hmmm… well perhaps there is something else that it is hindering. Any custom post type (I have three) will not work for me. So perhaps there is another plugin that is affecting it. Thank you for checking! I appreciate it.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’d suggest disabling all other plugins except CPTUI and the shortcode one, and see if it works at that point.

    There are possible cases where queries are being interfered with.

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

The topic ‘Custom Post Types problem with Custom Content Shortcodes’ is closed to new replies.