• Hello- thanks for any help/suggestions…

    What I’m hoping to do is display whatever content is entered in the Headspace “Meta Description” field (be it for a Page, Post, or Category), elsewhere in the theme code.

    Right now the plugin kicks it out into the <head>, within the proper meta-tag there, like it’s supposed to. Great! But….

    I ALSO want that same information (those magic 180 characters) to display elsewhere in my theme. Ideally, it would work flexibly like any other wordpress Function…so that I could drop that php-Function into any spot inside my theme that I wished. Obviously an integrated official “Function” might be a bit too much to hope for, but even a few lines of PHP that could get dropped in anywhere would be awesome!

    So, is there a way to call forth that Headspace meta-description data and display it/”echo it” with a little bit of php code to display it <again, separately from the <head> section, elsewhere in the theme code?

    Thanks!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was wondering this same thing. Anyone ever got this figured out?

    This is possible with All In One SEO with the following snippet:

    <?php if(function_exists('aiosp_meta')) : ?>
    	<?php $description = stripcslashes(get_post_meta($post->ID, '_aioseop_description', true)); ?>
    	<?php if(!empty($description)) : ?>
    		<div class="some-style">
    			 <?php echo $description; ?>
    		</div>
    	<?php endif; ?>
    <?php endif; ?>

    [Please post code snippets between backticks or use the code button.]

    Anybody out there have a good enough knowledge of Headspace and PHP to come up with something similar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: HeadSpace2 SEO] Display data from META DESCRIPTION field in theme template’ is closed to new replies.