Create Shortcode Title Page as desired | Congdongblog.com



Create Shortcode Title Page as desired


Many of you want to display the Title Page as you want, but wrodpress does not have it available, so I made a tutorial to create the shortcode title page that you want for your website to be more flexible.


How to create short code title page


You add the code to create the shortcode below into the theme's Function.php!


function myshortcode_title( ){
return get_the_title();
}
add_shortcode( 'page_title', 'myshortcode_title' );

Once created, you can add the code below to the stage you want


(page_title)

That's it, Later you want to show the title where you just need to add shorcode (page_title) This is voltage stabilizer: p


Thank you all for your success!




0 Comments

×