Support

Account

Home Forums General Issues Show CPT on specific page in a dynamic way?

Helping

Show CPT on specific page in a dynamic way?

  • Hi,

    I need to display a custom post type on a specific page (but also in translated pages).

    Now, what is the best way to go about doing this, so that things don’t break if pages for whatever reasons gets it IDs changed (yeah, I know this seem weird, but I do find it weird to hard code all these IDs directly in PHP)?

  • Hi @dangdongho1

    A lot of what WordPress and ACF does, relies on the ID not changing – that way you’re free to update Titles, Slugs, etc, so I’m not sure what you’re trying to accomplish will work.

    If you feel like I’m not understanding you, would you mind using something like http://recordit.co/ to show me what you’re trying to do?

    Phil

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

You must be logged in to reply to this topic.