Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress calling a page_name or page_id

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30749
    mpoisel
    Member

    I’m trying to call either the page name or the page ID in wordpress. I’ve been racking my brain trying to figure this out and nothing is working.

    This is the code that I’m using:


    $cards = new Pod('cards');
    $parent_title = get_the_title($post->post_parent);
    $cards->findRecords(null, 3, 'category.name = "parent_title"');
    $total_cards = $cards->getTotalRows();
    ?>

    If any one could help me out on this one it would be greatly appreciated.

    Thanks,
    Mike

    #74370
    mpoisel
    Member

    I for got to mention that I’m trying to replace the “parent_title” in the 3rd line of code to be either the page name or page ID.

    sorry about that.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.