WordPress Post custom field link

Support General WordPress Post custom field linkResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22986
    EliodataEliodata
    Participant

    Hi,

    I am using the custom field "Wordpress" > "Posts" to display an select advanced list of cpt (multiple choices is enabled). Is it possible to display the selected items as a link which could be opened in a new tab please?

    Best regards

    #22991
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The field post save the post ID in the database so you can use the function get_the_permalink() to get the link of the post ID. It just likes the sample code https://docs.metabox.io/fields/post/#template-usage.

    #22994
    EliodataEliodata
    Participant

    Thank you for the very quick answer!
    Same problem as the other topic.
    I don't want to display the link on front end, but on the edit post / user relationship metabox.
    Maybe I didn't understood your answer, I am not a dev, sorry. And I would understood if this this question is beyond the scope of your support.

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