• Resolved bassmit

    (@bassmit)


    Hi,

    I have been trying to get a custom_post type to be shown by [wp-tiles]. From the forum i’ve tried several forms.
    [wp-tiles=’posts_query=my_custom_post_type’]

    Also i’ve tried to use sub-pages, and get them to show like this

    [wp-tiles posts_query=’post_parent=155&posts_per_page=10′]

    So far without results.
    Can anyone give me a hint of how to do this, or perhaps where i can find some documentation.
    Thanks

    https://www.ads-software.com/plugins/wp-tiles/

Viewing 2 replies - 1 through 2 (of 2 total)
  • abhinav_2331

    (@abhinav_2331)

    how can i display individual categories post on a page.
    Ex. Like i want that my 10 post of Health category display on one page.
    And 10 Post of Business category display on other page sap rate.

    Please help me its important for me.
    Thanks in advance.

    Plugin Author Mike Martel

    (@mike_cowobo)

    Hi @bassmit, sorry for the delay. To query for a specific post type, add post_type inside the posts_query like this:

    [wp-tiles posts_query='post_type=my_custom_post_type']

    To use subpages, make sure the post type is correct. The code you have listed should work.

    @abhinav_2331: Please open a separate thread for your question. That makes it easier for other users to find already answered questions. I’ll answer here, but if you have follow up questions, please open a new topic!

    You can simply use the [wp-tiles] shortcode multiple times on a single page, and pass different parameters every time. Eg:

    [wp-tiles posts_query='category=3&posts_per_page=10']
    
    [wp-tiles posts_query='category=4&posts_per_page=10']
    
    [wp-tiles posts_query='category=5&posts_per_page=10']

    Cheers,
    Mike

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i show a custom post type using wp-tiles’ is closed to new replies.