Themes Tips And Tricks WordPress

Add Shortcodes To Sidebar

Since WordPress is php based, in order to use shortcodes on the sidebar or anywhere on the theme, we have to use echo. <h2><?php echo do_shortcode(‘ catlist categorypage=yes excerpt=yes excerpt_size =255)]’); ?></h2> This is the shortcodes for catlist to list related posts in the same category on the sidebar for my single.php that I’m designing […]