target="_blank" in link
-
Hi,
my site has 2 post formats, standard and links. Links format post are blank and they are basicly a placeholder for thumbnail and a custom field with link address. I managed to change url for those format of post to that custom field in submenuWalker.phpif (get_post_format( $p->ID ) == "link" ) { $p->url = apply_filters( 'jcs/item_url', get_post_meta($p->ID, 'link', true), $p->ID, $post_type ); } else { $p->url = apply_filters( 'jcs/item_url', get_permalink( $p->ID), $p->ID, $post_type ); } $p->url = apply_filters( 'jcs/post_item_url', $p->url, $p->ID );
Is there is a way to add atribute target=”_blank” to those links?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘target="_blank" in link’ is closed to new replies.