aaltoni
Forum Replies Created
-
plugin is activated, but not see Twitter cards anyway…hmmm i think im doing something wrong…I haven’t include meta tags to my header file, but nothing changes anyway…gosh im noob…
Ok thanks…now i’ve done that…do i now need to add those meta tags in my header file?
Do i need to put this
add_filter( ‘twitter_cards_properties’, ‘twitter_custom’ );in header or?
and where i put this
function twitter_custom( $twitter_card ) {
if ( is_array( $twitter_card ) ) {
$twitter_card[‘creator’] = ‘@niall’;
$twitter_card[‘creator:id’] = ‘1085’;
}
return $twitter_card;
}Sorry for being such a noob…
hmmm i can’t find this filter properties anywhere? can you tell me where to find this code?
$t = apply_filters( 'twitter_cards_properties', $this->toArray() ); if ( ! is_array( $t ) || empty( $t ) ) return ''; $s = ''; foreach ( $t as $name => $value ) { $s .= self::build_meta_element( $name, $value, $xml ); } return $s; }[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]