Need to auto fill title and description for social meta | Feature Requests - All in One SEO Pack Pro | Support | Semper Plugins

Lost password?
Advanced Search
Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Need to auto fill title and description for social meta
December 20, 2014
4:29 pm
Kyler Boudreau
Forum Posts: 47
Member Since:
April 30, 2014
sp_UserOfflineSmall Offline

Peter and Steve gave me a way to add code to my functions.php file to auto populate my titles and pull in ACF fields.

It works great. However, I need it to do the same for the social meta info – could someone give me the code for that too? Thanks a million!

Here’s what I’m using right now (this is addressing two of my CPTs):

global $aiosp;

if ( !empty( $aiosp ) ) {
add_filter( ‘aioseop_description’, Array( $aiosp, ‘apply_cf_fields’ ) );
add_filter( ‘aioseop_description’, ‘sfwd_default_description’, 1 );
function sfwd_default_description( $desc ) {
if ( is_singular( ‘ogs’ ) ) {
if ( empty( $desc ) ) $desc = “Looking for products in %cf_city%, %cf_state%?”;
} else if ( is_singular( ‘juniors’ ) ) {
if ( empty( $desc ) ) $desc = “Looking for products in %cf_city%, %cf_state%?”;
return $desc;

December 22, 2014
7:16 pm
Peter Baylies
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York
Most Users Ever Online: 964
Currently Online: Simon Spencer, Steven Gaccioli
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 23699
Moderators: 1
Admins: 7
Forum Stats:
Groups: 4
Forums: 28
Topics: 2139
Posts: 9314
Newest Members:
Keely Harris
Moderators: semperplugins: 0
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve Klasen, Arnaud: 262
Skip to toolbar