{"id":22,"date":"2012-05-18T22:03:16","date_gmt":"2012-05-18T22:03:16","guid":{"rendered":"http:\/\/www.jacksowden.co.uk\/blog\/?p=22"},"modified":"2012-05-18T22:11:21","modified_gmt":"2012-05-18T22:11:21","slug":"new-links-section-with-the-help-of-wordpress-do-shortcode","status":"publish","type":"post","link":"https:\/\/www.jacksowden.co.uk\/blog\/new-links-section-with-the-help-of-wordpress-do-shortcode\/","title":{"rendered":"New links section with the help of WordPress &#8211; do shortcode!"},"content":{"rendered":"<p>I had a little spare time tonight so I made a nice little &#8216;links&#8217; section on my new website. I wanted to be able to manage this easily so it made sense to try and incorporate the WordPress install I already had set up.<\/p>\n<p>I used the WordPress links capabilities along with a plugin called Link Library <a title=\"Visit plugin site\" href=\"http:\/\/wordpress.org\/extend\/plugins\/link-library\/\">http:\/\/wordpress.org\/extend\/plugins\/link-library\/<\/a>. This plugin is highly customisable and well worth a look if you have a similar need.<\/p>\n<p>I did not want the page that displays the links to have the bulk of WordPress in the background so I just required the core WordPress file as follows. I have found with a few recent WordPress projects that these sites have really started to chug along!<\/p>\n<p>{code type=php}<br \/>\n\/\/ At the top of the page<br \/>\nrequire($_SERVER[&#8216;DOCUMENT_ROOT&#8217;].&#8217;\/blog\/wp-load.php&#8217;);<\/p>\n<p>\/\/ Then at the point you want the links to display<br \/>\necho do_shortcode(\/* shortcode to disply plugin *\/);<br \/>\n{\/code}<\/p>\n<p>I could not believe how easy it was! I had to add some styles and with this only taking a few hours in all I was well happy with the result. So thats blog post number 2 completed and it even had some code in it, go on lad!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a little spare time tonight so I made a nice little &#8216;links&#8217; section on my new website. I wanted to be able to manage this easily so it made sense to try and incorporate the WordPress install I already had set up. I used the WordPress links capabilities along with a plugin called [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":41,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[13,12],"class_list":["post-22","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-general-blog","tag-links","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":18,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions\/40"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/media\/41"}],"wp:attachment":[{"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jacksowden.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}