Support

Account

Forum Replies Created

  • The “Related” issue has been solved. But I still do need assistance on getting that file URL. I’ve even changed the sub_field return value to “File URL” (it had been “File Object”), but it’s still not working properly.

  • RELATED: Any chance someone can direct me on how to hook these fields into the Woocommerce Single Product page? Right now the code is simply added to the single-product.php, immediately following the woocommerce_content, but it’s not actually appearing where I want it to. I suspect I need to use some sort of hook with that code added to it.

  • O…M…G. I cannot believe I completely missed that. Of course. It makes perfect sense. Thank you very much!

  • I think I was pretty clear about the location rules settings, but here’s a screenshot anyhow.

    Screenshot of location rules

  • I got it: <a href="<?php echo $image['link_url']; ?>" target="_blank"> THANK you, for your help!

  • Well lookie there! It’s at least printing there now. Thank you!

    BUT (and I’m assuming that this is because it’s almost 1:30am and I’ve been coding responsive html emails all day long…LOL) for the life of me I can’t get the URL to echo in the href. I’ve tried loads of different combinations. This is the most recent, and the last I’m trying before going to sleep – which probably means it’ll be painfully obvious what I’m doing wrong once I wake up in the morning…urgh.

    <a href="<?php echo $images[$i]['link_url']; ?>" target="_blank">

  • Interesting. It’s not printing the link_url at all. I’ve just checked again to make sure what I added got saved with it (I put a test link just to google.com). It’s showing up in the editor just fine. I wonder why it doesn’t appear here?

    Array
    (
        [0] => Array
            (
                [id] => 1065
                [alt] => 
                [title] => carnival
                [caption] => 
                [description] => 
                [mime_type] => image/jpeg
                [url] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                [width] => 221
                [height] => 73
                [sizes] => Array
                    (
                        [thumbnail] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival-150x73.jpg
                        [thumbnail-width] => 150
                        [thumbnail-height] => 73
                        [medium] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [medium-width] => 221
                        [medium-height] => 73
                        [medium_large] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [medium_large-width] => 221
                        [medium_large-height] => 73
                        [large] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [large-width] => 221
                        [large-height] => 73
                        [cruise-logo] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival-150x50.jpg
                        [cruise-logo-width] => 150
                        [cruise-logo-height] => 50
                        [post-thumbnail] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [post-thumbnail-width] => 221
                        [post-thumbnail-height] => 73
                        [blog] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [blog-width] => 221
                        [blog-height] => 73
                        [blog-landscape] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [blog-landscape-width] => 221
                        [blog-landscape-height] => 73
                        [header] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [header-width] => 221
                        [header-height] => 73
                        [place] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival.jpg
                        [place-width] => 221
                        [place-height] => 73
                        [easy_testimonial_thumb] => http://gailstravel.brotskydesigns.com/wp-content/uploads/2015/09/carnival-50x50.jpg
                        [easy_testimonial_thumb-width] => 50
                        [easy_testimonial_thumb-height] => 50
                    )
    
                [link_url] => 
            )
  • Hmmm…that’s still not getting it.

    I’ve tried replacing just my first 2 lines with your code (leaving the if($images): part), I’ve tried replacing the whole first 4 lines with your code, and removing the endif statement at the end. I’ve tried both versions and replacing the href with get_field(‘link_url’, $images[$i][‘ID’]), but nothing’s getting that URL link. I know it’s close, but I’m definitely still missing something.

  • I *thought* that’s what I was doing with the $choices = get_field('venue_name', 'venue', false); since that’s calling the “venue” $post_id. What am I missing?

  • Maybe I need to explain a little more about what I’m trying to do:

    I run an opera company. I’ve created several custom post types in order to gather the necessary information to display everything necessary for a given show. These custom post types include: Venues, Creative Staff, Performers, and Production.

    Each of these custom post types are assigned a different group of custom fields.

    Within the Production page, I’m wanting to select from venues created in the venues custom post. Same with selecting staff members that have been created within the “Creative Staff” custom post type and the “Performers” custom post type.

    The reason for this is that venues may be different from production to production, but some staff members and performers will appear in multiple productions and I don’t want to enter their information over and over.

  • The reason I was doing that is that I have not assigned those values to the Option page. I have assigned them to the Venue page.

Viewing 11 posts - 76 through 86 (of 86 total)