Forums

[resolved] Custom Flash & Custom Field (3 posts)

  1. CreateMeThis
    Member
    Posted 3 years ago #

    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.
    "http://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?

  2. CreateMeThis
    Member
    Posted 3 years ago #

    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.

  3. rosemckay
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic