{"id":1669,"date":"2010-11-15T10:24:57","date_gmt":"2010-11-15T10:24:57","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/working_with_wordpress\/article4.html"},"modified":"2017-02-22T04:39:12","modified_gmt":"2017-02-22T09:39:12","slug":"how-optimize-for-x","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-optimize-for-x.html","title":{"rendered":"How to optimize WP 2.1 for WP 2.0.x"},"content":{"rendered":"<p class=\"MsoNormal\"> <span lang=\"UK\"> <span style=\"FONT-WEIGHT: bold\">get_links_list()<\/span> function has been changed to <strong> <span lang=\"UK\">wp_list_bookmarks()<\/span> <\/strong><\/span> <\/p> <p class=\"MsoNormal\"> <strong> <span lang=\"UK\">wp_list_bookmarks()<\/span> <\/strong> <strong> <span lang=\"EN-US\" style=\"FONT-WEIGHT: normal\">is used for the links output from the bookmarks menu<\/span> <\/strong> <strong> <span lang=\"UK\" style=\"FONT-WEIGHT: normal\">(<\/span> <\/strong> <span lang=\"UK\">displays bookmarks found in the <em>Bookmarks Management<\/em> screen)<\/span> <span lang=\"EN-US\">and it\u2019s not supported by the previous WP versions. Currently this function works only with Netscape and Mozilla but WP developers promise to make it cross-platform in the very near future.<\/span><\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">If you want to <span style=\"FONT-WEIGHT: bold\">convert the 2.1 version to the 2.0.x<\/span>, you need to follow the instructions below:<\/span> <\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">1. If <span style=\"FONT-WEIGHT: bold\">you\u2019re<\/span> <span style=\"FONT-WEIGHT: bold\">not planning to use widgets<\/span> in this theme you should:<\/span> <\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp;1.1 open <span style=\"FONT-WEIGHT: bold\">sidebar.php<\/span> file in your folder with the theme<\/span> <\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a) change the&nbsp;<\/span> <span lang=\"UK\" style=\"FONT-WEIGHT: bold\">wp_list_bookmarks()<\/span> <strong> <span lang=\"EN-US\" style=\"FONT-WEIGHT: normal\">for the<\/span> <\/strong> <span lang=\"UK\" style=\"FONT-WEIGHT: bold\">get_links_list()<\/span>;<\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b) replace <span style=\"FONT-WEIGHT: bold\">&lt;?php wp_list_categories(&#8216;show_count=1&amp;title_li=0&#8217;); ?&gt;<\/span> with <span style=\"FONT-WEIGHT: bold\">&lt;?php wp_list_cats(&#8216;sort_column=name&amp;optioncount=1&amp;hierarchical=0&#8217;); ?&gt;<\/span><\/span> <\/p> <p class=\"MsoNormal\">&nbsp; <span lang=\"EN-US\">1.2 open <span style=\"FONT-WEIGHT: bold\">header.php<\/span> in your folder with the theme and delete <span style=\"FONT-WEIGHT: bold\">&lt;?php language_attributes(); ?&gt;<\/span><\/span><\/p> <p class=\"MsoNormal\">&nbsp; <span lang=\"EN-US\">1.3 open <span style=\"FONT-WEIGHT: bold\">searchform.php<\/span> in your folder with the theme and delete <span style=\"FONT-WEIGHT: bold\">&lt;?php the_search_query(); ?&gt;<\/span><\/span><\/p> <span lang=\"EN-US\"> <br \/> <\/span> <span lang=\"EN-US\">2. If <span style=\"FONT-WEIGHT: bold\">you\u2019re<\/span> <span style=\"FONT-WEIGHT: bold\">planning to use widgets<\/span> in your theme you should:<\/span> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp; 2.1 open <span style=\"FONT-WEIGHT: bold\">header.php<\/span> in your folder with the theme and delete <span style=\"FONT-WEIGHT: bold\">&lt;?php language_attributes(); ?&gt;<\/span><\/span> <\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp; 2.2 open <span style=\"FONT-WEIGHT: bold\">searchform.php<\/span> in your folder with the theme and delete <span style=\"FONT-WEIGHT: bold\">&lt;?php the_search_query(); ?&gt;<\/span><\/span> <\/p> <p class=\"MsoNormal\"> <span lang=\"EN-US\">&nbsp; 2.3 open <span style=\"FONT-WEIGHT: bold\">functions.php<\/span> file and change the<\/span> <strong style=\"FONT-WEIGHT: bold\"> <span lang=\"UK\">wp_list_bookmarks()<\/span> <\/strong> <strong> <span lang=\"EN-US\" style=\"FONT-WEIGHT: normal\">for<\/span> <\/strong> <span lang=\"UK\"> <span style=\"FONT-WEIGHT: bold\">get_links_list()<\/span>;<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>get_links_list() function has been changed to wp_list_bookmarks() wp_list_bookmarks() is used for the links output from the bookmarks menu ( displays bookmarks found in the Bookmarks Management screen) and it\u2019s not supported by the previous WP versions. Currently this function works only with Netscape and Mozilla but WP developers promise to make it cross-platform in the [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[720,247,728],"tags":[2564,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1669"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1669"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1669\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}