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.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to call menu label attribute in the theme?
October 10, 2009
10:35 am
supportlounge
New Member
Forum Posts: 2
Member Since:
October 10, 2009
Offline

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?

October 25, 2009
2:17 pm
supportlounge
New Member
Forum Posts: 2
Member Since:
October 10, 2009
Offline

Anyone?

How do I call the $menulabel etc?

November 18, 2009
3:19 am
sergiozambrano
New Member
Forum Posts: 2
Member Since:
August 1, 2009
Offline

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.

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)