ultramalcolm
Forum Replies Created
-
Forum: Hacks
In reply to: Calling a custom field inside of an echo?AUUUUUUUUUUUUUUUGH!
Thank you SO SO much for being a second set of eyes on this. I appreciate it very much.
Forum: Hacks
In reply to: Calling a custom field inside of an echo?Yes, the custom field for the download link is filled in. I just tried adding it to a second page in the “Episodes” category: https://anchor-consulting.com/dev/bionic/?p=569
The results were the same…the button is showing the address of the page itself, not the value of the custom field.
When I add a plain <?php the_meta(); ?> , I do get the list of meta data. (I left it in so you can see.)
Any other ideas?
Forum: Hacks
In reply to: Calling a custom field inside of an echo?It does? The value of “direct_download_link” should be “/episodes/test.htm” but that’s not what I’m seeing.
Forum: Hacks
In reply to: Calling a custom field inside of an echo?https://anchor-consulting.com/dev/bionic/?p=559
Adding the global post code made no change, and yes, the $post variable IS being sent (I just checked).
Forum: Hacks
In reply to: Calling a custom field inside of an echo?Okay, here’s what I am using now:
<?php if ( in_category( 'Episodes' )) { ?> <a href="<?php echo get_post_meta($post->ID, 'direct_download_link', true); ?>"><img src="/dev/bionic/wp-content/themes/photoria/images/download-button_01.png"></a><img src="/dev/bionic/wp-content/themes/photoria/images/download-button_02.png"><br><br> <?php } ?>
This still isn’t pulling the value from my custom field, though…the button is just showing the URL of the page.
Forum: Hacks
In reply to: Calling a custom field inside of an echo?Here’s my updated code:
<?php if ( in_category( 'Episodes' )) { $var = get_post_meta($post->ID, 'direct_download_link', true); echo '<a href=$var><img src="https://www.anchor-consulting.com/dev/bionic/wp-content/themes/photoria/images/download-button_01.png"></a><img src=<img src="https://www.anchor-consulting.com/dev/bionic/wp-content/themes/photoria/images/download-button_02.png">'; } ?>
It looks like the custom field still isn’t getting picked up by the browser.
Forum: Hacks
In reply to: Calling a custom field inside of an echo?Thanks for the reply. I’ve modified the code, but it is still not returning the contents of my custom field…it is just showing the URL of the page. Any other ideas?
I am still hoping for an answer to this.
Forum: Fixing WordPress
In reply to: Help me find script added by malicious coderThat’s what I’m doing now. Thank you!
Forum: Fixing WordPress
In reply to: Help me find script added by malicious coderThis is some awesome reading…thank you so much. In this case, I got lucky: upgrading to the newest version of WP seemed to do the trick. Thank you!
Forum: Plugins
In reply to: Google Sitemaps ErrorI am getting this error as well, the one on line 544. Is this a conflict with Google Sitemaps? Updating to the latest version of the plugin didn’t seem to help. Any ideas?