

4:29 pm
April 30, 2014

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;
}
}
7:16 pm
October 16, 2011

** 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 **
Most Users Ever Online: 964
Currently Online:
27 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 35
Members: 21044
Moderators: 1
Admins: 8
Forum Stats:
Groups: 4
Forums: 28
Topics: 1985
Posts: 8579
Newest Members:
Leticia TisthammerModerators: Dawa Liu
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi