How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Display posts from custom post type.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3608
    stennn
    Participant

    Hi,

    I don`t want to use posts. I created 2 new post types: News and Tips. Now I want to show them with a shortcode: [news_boxes cat=””] but they don`t show. How can I show custom post types?

    #3659
    admin
    Keymaster

    Hi stenn,

    This shortcode is made to work only with the normal Posts of WP.
    In order to make it work with CPT you need to make changes to the shortcode `[news_boxes]`.
    First locate the file inc/addons/sc-various.php and find the function “news_boxes_sc”.
    Copy/Paste this function to the functions.php of your child theme and make the appropriate changes to the WP_Query to work with CPT.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.