• Resolved syoung68

    (@syoung68)


    Turns out it is now NOT working and I have no idea why it was and now it is not. Trying to add a short code of a post expiration date into a list of posts (CPTs)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support eugenewhite

    (@eugenewhite)

    Hello there!

    I would like to inform you that shortcodes do work in Custom Post Type templates, I’ve double-checked that. So I assume that it’s a matter of the shortcode that you use. Perhaps it should be used inside your post for it to be rendered properly. In this case, I may suggest you clarify this with a shortcode provider.

    Thread Starter syoung68

    (@syoung68)

    I can get simple shortcodes to work where I am inputting something constant like current year, but anything that calls the post info does not work. I am trying to pull a meta field shortcode that is in my function.php page. It works fine on a single post page, but not in the template loop.

    Plugin Support eugenewhite

    (@eugenewhite)

    Hello @syoung68

    I would like to ask you to provide an example of a shortcode, a plugin name that you use, and describe the exact steps to try to reproduce the issue on our side. Thank you!

    Thread Starter syoung68

    (@syoung68)

    This seems to be a function of WordPress directly not just your plugin. The same thing happens in a query loop block. The short code is grabbing the post ID of the main page and therefore can not pull a custom meta field inside the loop.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short Code in Post Template Rnd 2’ is closed to new replies.