Ready to get started?Download WordPress


Pods - Custom Content Types and Fields
[resolved] Title of the detail page (5 posts)

  1. dionysos73
    Posted 1 year ago #


    i have another problem: the title of my detail pod page is called "Detail album". However, i want to display the title of the album. It seems we can't used the magic tag {@title_album} to name the detail page.

    How i can do this?

    Thanks again.

    Best regards,



  2. Scott Kingsley Clark
    Plugin Author

    Posted 1 year ago #

    The magic tag in the Pod Page title will only work if you set $pods up in your Precode.

    Or, in Pods 2.3.x, there's a new ability to assign a Pod to a Pod Page, and choose a wildcard format for picking up your detail pages.

    If your page was at mysite.com/list/detail/ then you could use {@url.1} to get the "detail" portion of the URL automatically. The numbering works like this, mysite.com/0/1/2/3/4/5/ because that's how array indexes work in code, starting with 0.

    That feature sets up $pods automatically in the code, so you don't have to do much else there. You can then access $pods in your Pod Page precode / page code to avoid any extra code you may have used before. The variable is made available to you automatically.

  3. dionysos73
    Posted 1 year ago #

    Thank you for your answer, but there's something i don't understand.

    The url of the detail page for an album is http://www.mysite.com/albums/title-of-the-album. So, if i follow your instructions i need to use the wildcard {@url.1}, is that correct?
    But it doesn't work, the title of my page is always "Detail album" and not "Title of the album"

    i turn the ticket to unresolved till your next answer.

    Thank you for your help.



  4. Scott Kingsley Clark
    Plugin Author

    Posted 1 year ago #

    In your Pod Page Title, you would put the field you want the title to come from, so that may be: {@name}

  5. dionysos73
    Posted 1 year ago #

    That's work! :)

    Great. Thank you again...


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.