unable to pull in Pages or CPT

dev.xiligroup est en travaux Forums Other plugins unable to pull in Pages or CPT

Ce sujet contient 0 réponses et 2 voix, et a été mis à jour par  Anonyme il y a Il y a 12 ans, 11 mois.

Visualisation du message 7 (1 sur 7, 7 au total)
  • Auteur
    Articles
  • #3032

    Anonyme

    have you test with page_id=2 instead p=2 as in url query for page ?

    #3033

    Anonyme

    sorry, I just noticed that, and tried this which worked:

    [xilipostinpost query='page_id=2' showcontent=1 showexcerpt=0]

    thanks

    how do I get CPT to work?

    #3034

    Anonyme

    WHAT is C.P.T. ? cross portal theme ? ;-)

    #3035

    Anonyme

    Custom Post Types

    #3036

    Anonyme

    Example as in url with CPT named xilifunctions

    https://dev.xiligroup.com/?xilifunctions=function-xi_postinpost

    https://dev.xiligroup.com/?cat=393&post_type=xilifunctions

    very easy to see if permalinks is not active ;-)

    #3040

    Anonyme

    Sorry, it’s still not clear to me how to insert a Custom Post Type using a xilipostinpost shortcode. What are the query parameters? Can you please provide an example? Thanks.

    #3041

    Anonyme

    Queries are well documented in http://codex.wordpress.org/

    example for current post (p) : ‘p=17’

    example for custom post type (CPT) with name animals and searching one post with slug yellow-cat : ‘animals=yellow-cat’

    example for CPT sharing taxonomy category with current post : ‘cat=27&post_type=animals’

    Technically CPT seems to be an amazing solution but don’t forget that in data-model approach and query point of view it can be a nightmare if the preliminary study is no well done.

    Hope that help to fin the road ;-)

Visualisation du message 7 (1 sur 7, 7 au total)

Vous devez être connecté pour répondre à ce sujet.