get_queried_object to the rescue for blog permalink

This commit is contained in:
Matthias Kretschmann 2016-01-07 16:14:56 +01:00
parent d2964a354b
commit a595c141ba
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ $description = '';
$image = '';
$title = '';
$url = get_bloginfo('wpurl');
$permalink = esc_url( get_permalink() );
$permalink = esc_url( get_permalink(get_queried_object()->ID) );
$twitter = '@ascribeio';
if ( has_post_thumbnail() ) {