Custom Taxonomy | Troubleshooting All in One SEO Pack Pro | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_Feed Topic RSS sp_TopicIcon
Custom Taxonomy
February 20, 2012
2:39 pm
Avatar
tbates
Member
Guests
Forum Posts: 20
Member Since:
February 20, 2012
sp_UserOfflineSmall Offline

I am trying to control a custom taxonomy page just like I do a normal page or post, setting the titles, keywords, description for each category, if i choose.

I just purchased pro because it said Custom Taxonomy support. I get there’s “filters”, but I want SPECIFIC meta data for SPECIFIC categories without having to pretty much write my own plugin.

February 20, 2012
6:09 pm
Avatar
David Bailey
Guest
Guests

Hi tbates

AIOSEOP currently does not generate metadata for categories. However, there are plugins that do, such as the Category Meta Plugin that you should be able to integrate with AIOSEOP. For example, you should be able to filter the single_cat_title hook to add custom meta data for category titles into AIOSEOP using something like:

function sfwd_set_category_title( $title ) {

if (function_exists(‘get_terms_meta’)) {
$category_id = get_queried_object_id();

if (!$category_id) return $title;
$title = get_terms_meta($category_id, ‘title’);

if ( is_array($title) ) $title = $title[0];

}

return $title;

}

add_filter(‘single_cat_title’, ‘sfwd_set_category_title’);

Let us know if this is what you’re looking for.

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online:
42 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 20470

Moderators: 1

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1943

Posts: 8353

Newest Members:

YAMADA YUDAI

Moderators: Dawa Liu

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi

[i]
[i]
Skip to toolbar