Recent Topics

how to call the api for URL title "slug":

Started by on Aug 21, 2012 – Contents updated: Aug 21, 2012

Aug 21, 2012 23:19    

i need to display the URL of the page/article in Google Analytics to pick it up.

i'd like to reference it similar to other formats

<?php echo $Blog->ID; ?>

but i don't know the $Blog class properties. where's the API definition?

Aug 22, 2012 16:23

The easiest way to display current URL is thi

PHP

echo $GLOBALS['ReqURL'];

For canonical post URL try

PHP

echo $Item->get_permanent_url();


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.