mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-31 17:17:47 +01:00
get_queried_object to the rescue for blog permalink
This commit is contained in:
parent
d2964a354b
commit
a595c141ba
@ -12,7 +12,7 @@ $description = '';
|
|||||||
$image = '';
|
$image = '';
|
||||||
$title = '';
|
$title = '';
|
||||||
$url = get_bloginfo('wpurl');
|
$url = get_bloginfo('wpurl');
|
||||||
$permalink = esc_url( get_permalink() );
|
$permalink = esc_url( get_permalink(get_queried_object()->ID) );
|
||||||
$twitter = '@ascribeio';
|
$twitter = '@ascribeio';
|
||||||
|
|
||||||
if ( has_post_thumbnail() ) {
|
if ( has_post_thumbnail() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user