HomeForumsPanoPress SupportHow to insert custom field value in shortcode ?

This topic contains 2 replies, has 2 voices, and was last updated by  elements7 3 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2398

    elements7
    Participant

    Hi,

    I need a unique .swf file to be shown by panopress for each post. What is the best way to do it? I thought about custom fields and shortcodes, but I couldn’t nest the custom field shortcode inside the panopress shortcode to get it to work.

    Thanks.

    #2399

    Sam Rohn
    Keymaster

    to insert wordpress custom field values into panopress (or any other shortcode) , try putting something like this in your theme template files

    in the above example, “MY_CUSTOM_FIELD” should be the name of your custom field, of course

    sam

    PS – i edited the title of this topic for clarity

    Sam Rohn :: New York City
    360° Panoramic Photography :: www.samrohn.com
    Location Scout :: www.nylocations.com

    #2410

    elements7
    Participant

    Woah it works. Thanks Sam! I’m slowly learning the workings of wordpress through finding help like this lol.

    I have now put your code into another widget that runs php, so I can move panopress with linked swf just like any other widget.

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

You must be logged in to reply to this topic.