• Resolved createmethis

    (@createmethis)


    This line is in my page template, I am trying to add a different flash piece to each page on my website.

    I thought that I could create a custom field called flash assign a value and then use that value to complete the path to the flash file.

    e.g.
    https://www.websitename.ca/swf/<?php $key_name = get_post_custom_values($key = ‘flash’); echo $key_name[0]; ?>.swf”

    The query doesn’t return an error but my page source shows

    websitename.ca/swf/.swf

    Can someone tell me what I am doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter createmethis

    (@createmethis)

    Is my only alternative to write a custom page template for each page with a unique flash file?

    This means I’ll be making 18 page layouts and I was hoping there would be a more elegant solution.

    I’m curious to know if/how you were able to solve this. I’m also in need of a solution for displaying a swf file via a custom field. I’m using a template that puts an image like a jpg into a specific area in the layout based upon it being named correctly in the custom fields and then the url specified. BUT! I also want to have swf files show up there too but I’m not sure how to get them to work. Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Flash & Custom Field’ is closed to new replies.