Home Forums Pure Theme Discussion & Support find catID for parent page

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by  Nick Truscott 10 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #2553

    Nick Truscott
    Post count: 67

    I’m trying to use the posts/page shortcode to return the featured image and page title of 3 child pages into the parent page.

    I put the pageID of the parent page into the shortcode but it returned the child pages for a different parent page (if you know what I mean).

    Any ideas on how to find teh catID to use other than writing some code in some php file (which I dont frankly understand how I will get the answer!)

    Any suggestions/help hugely appreciated.



    Roger Leitch
    Post count: 56

    Sounds like parent_id and cat_id are mixed up.

    With post type of pages you have to use the parent_id parameter.
    With post type of posts you use the cat_id parameter.

    The parent page can be identified using the guidance here:

    The cat_id, can be found in the same way – edit the category and the number is found in the page URL.

    Hope this helps.


    Post count: 730

    Yes, these can be tricky to find. In older version it used to be a column in the categories page.

    As Roger says, for pages you need to use parent_id not cat_id. And also set post_type to “pages”.


    Nick Truscott
    Post count: 67

    Thanks guys – should have ben able to figure that one out myself! duh!


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

You must be logged in to reply to this topic.