Tagged: tag page
Hello, how can I insert page number in h1 for page > 2 in tag page?
Is it possibile to use a shortcode?
Hey Claudia,
Please add following code to bottom of Functions.php file in Appearance > Editor
function av_the_id(){
if(is_tag()){
echo "<h2>". get_the_ID() ."</h2>";
}else{
echo "<h1>". get_the_ID() ."</h1>";
}
}
add_shortcode( 'the_id', 'av_the_id' );
Then use [the_id] shortcode to display the ID :)
Best regards,
Yigit
Thanks for your reply but I need to add the page number in case of multipage not the id of the page. Is it possibile in the same way?
I solved creating a new shortcode, thanks for your hint
Hi Travelwiththewind,
We’re glad to hear that :)
Thanks for using Enfold and have a great weekend!
Best regards,
Nikko