[Support request] Link to the parent post in attachment page

Home Forums Support [Support request] Link to the parent post in attachment page

Home Forums Support Link to the parent post in attachment page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1773224
    Manish

    Hey I Want To Add a Link to the parent post on the attachment page Like https://prnt.sc/12rwn4o

    #1773467
    Elvin
    Staff
    Customer Support

    Hi there,

    on your attachment page template, you’ll have to get the parent post’s id and use that to get the parent post permalink.

    See this example code – https://wordpress.stackexchange.com/a/312470

    A wise man once said:
    "Have you cleared your cache?"

    #1774774
    Manish

    Thanks

    #1775100
    Elvin
    Staff
    Customer Support

    No problem. 🙂

    A wise man once said:
    "Have you cleared your cache?"

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.