How to call menu label attribute in the theme? General - All in One SEO Pack Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

 
You must be logged in to post
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

How to call menu label attribute in the theme?

Post
New Member

supportlounge

posts 2

10:35 am October 10, 2009

I want to add some content into the footer of a site using the "menu label" attribute or maybe the "title" attribute from AIOSEO instead of the title entered for the page or post.

To call the standard title I would use

<?php the_title() ?>

but how would I call the various attributes from All-In-One?

New Member

supportlounge

posts 2

2:17 pm October 25, 2009

Anyone?

How do I call the $menulabel etc?

New Member

sergiozambrano

posts 2

3:19 am November 18, 2009

Post edited 8:22 am – November 18, 2009 by sergiozambrano


Use

<?php $your_menu_var = get_post_meta($id,'_aioseop_menulabel',true); ?>

inside the loop, and then

echo $your_menu_var;

where you want the menu label to appear.


About the WordPress Developer Forum

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
29 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 5
Forums: 23
Topics: 1543
Posts: 3447

Membership:

There are 6357 Members

There are 4 Admins
There are 3 Moderators