Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
If you completely take the code out, does it still display something? It’s an easy way to check if you’re editing the right file.
@TheDoc No, it doesn’t output anything if I remove the code. Although, when I was speaking with Jamy, he had me firebug it and it showed quotes in the markup but not in view source. I’ll screenshot.
A link would also be fantastic!
@TheDoc No can do, it’s local. http://i47.tinypic.com/6pyivk.png
It looks like it’s working fine!
@TheDoc, That’s because I put the code back that I had before. If I use @ChrisxClash’s solution, I get this: http://i46.tinypic.com/2q9j8de.png
I’m really close on this (I think).
$meta = $custom_metabox->the_meta('description', TRUE);
if ($meta):
echo ''.$meta.'
'; ?>
Returns
Array
Instead of the actual content but if I don’t have any content in the metabox, it doesn’t return anything, which is exactly what I wanted.
All I need is help figuring out why it returns “Array” instead of the actual content.
I had someone on the WordPress forums help me further.
Solution:
$meta = $custom_metabox->the_meta('description', true);
if (!empty($meta)):
echo ''.$meta.'
'; ?>
Thanks everyone for your help. I owe you one.
@ChrisxClash Thanks for explaining. Much appreciated.