{"id":2535,"date":"2012-09-18T21:43:58","date_gmt":"2012-09-18T21:43:58","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=2535"},"modified":"2012-09-18T21:46:40","modified_gmt":"2012-09-18T21:46:40","slug":"add-shortcodes-to-sidebar","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/add-shortcodes-to-sidebar.html","title":{"rendered":"Add Shortcodes To Sidebar"},"content":{"rendered":"<p style=\"text-align: center;\"><em>Since WordPress is php based, in order to use shortcodes on the sidebar or anywhere on the theme, we have to use echo.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><em><\/em>&lt;h2&gt;&lt;?php echo do_shortcode(&#8216; catlist categorypage=yes excerpt=yes excerpt_size =255)]&#8217;); ?&gt;&lt;\/h2&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>This is the shortcodes for catlist to list related posts in the same category on the sidebar for my single.php that I&#8217;m designing right now (the right bracket before &#8216;catlist&#8217; is missing). <\/em><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since WordPress is php based, in order to use shortcodes on the sidebar or anywhere on the theme, we have to use echo. &lt;h2&gt;&lt;?php echo do_shortcode(&#8216; catlist categorypage=yes excerpt=yes excerpt_size =255)]&#8217;); ?&gt;&lt;\/h2&gt; This is the shortcodes for catlist to list related posts in the same category on the sidebar for my single.php that I&#8217;m designing <a href=\"https:\/\/www.dognmonkey.com\/techs\/add-shortcodes-to-sidebar.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,16,20],"tags":[229],"class_list":["post-2535","post","type-post","status-publish","format-standard","hentry","category-themes","category-tips-and-tricks","category-wordpress","tag-add-shortcodes-to-sidebar"],"views":1183,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=2535"}],"version-history":[{"count":7,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/2535\/revisions"}],"predecessor-version":[{"id":2541,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/2535\/revisions\/2541"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=2535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=2535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}