adding a query to permalink
-
Hi,
I’m trying to edit a widget – specifically add the ‘?iframe=true’ to the end of a bit of code that calls the permalink.
Code here:
———————————————
// Setting up post title link HTML attributes
$ptitle_link_atts = array(
‘class’ => ‘srp-post-title-link’,
‘href’ => get_permalink( $post->ID) ,
‘title’ => esc_attr( $post->post_title )
);
———————————————
I’m not sure how to add the ‘?iframe=true’ to the end of the ‘href’ line. Is there an easy way to do this?
- The topic ‘adding a query to permalink’ is closed to new replies.