{"id":311,"date":"2012-04-04T23:10:18","date_gmt":"2012-04-04T23:10:18","guid":{"rendered":"http:\/\/www.codeboss.in\/web-funda\/?p=311"},"modified":"2012-04-04T23:10:18","modified_gmt":"2012-04-04T23:10:18","slug":"how-to-create-pages-in-wordpress-with-custom-coding","status":"publish","type":"post","link":"https:\/\/codeboss.in\/web-funda\/2012\/04\/04\/how-to-create-pages-in-wordpress-with-custom-coding\/","title":{"rendered":"How To Create Pages In WordPress With Custom Coding"},"content":{"rendered":"<h3>Objective<\/h3>\n<p>Create a page in WordPress which will show the header, footer, sidebars like the rest of the site, but will allow custom coding in the main body section.<\/p>\n<h3>So how to create this WordPress page which will allow custom coding ?<\/h3>\n<p>1. Go to the theme folder in wp-content\\themes\\{your_theme_folder}<\/p>\n<p>2. Create a page with the name custom-page.php<\/p>\n<p>3. Write the following lines of code in custom-page.php<\/p>\n<pre class=\"brush: php;\">\n\/**\n * Template Name: Custom Template\n * Description: A Page Template for custom coding\n *\/\n\nget_header(); \necho \"Put the custom coding here\"; \nget_sidebar(); \nget_footer(); \n<\/pre>\n<p>This will create a custom template with name &#8220;Custom Template&#8221; for your WordPress pages. <\/p>\n<p>4. Log in to WordPress admin.<\/p>\n<p>5. Go to Pages -> Add New<\/p>\n<p>6. In the &#8220;Page Attributes&#8221; section in the right under &#8220;Template&#8221; choose option &#8220;Custom Template&#8221; (Or the name that you have set in custom-page.php)<\/p>\n<p>7. Your custom coding page is ready. Write your custom code in custom-page.php <\/p>\n<p>8. The link to the page can be found beside &#8220;Permalink:&#8221;<\/p>\n<p>9. Also for ease of navigation you can add the page in the menu.<\/p>\n<p>Hope this will help you to make custom coded PHP pages under WordPress. Happy coding \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Objective Create a page in WordPress which will show the header, footer, sidebars like the rest of the site, but will allow custom coding in the main body section. So how to create this WordPress page which will allow custom coding ? 1. Go to the theme folder in wp-content\\themes\\{your_theme_folder} 2. Create a page with&hellip; <a class=\"more-link\" href=\"https:\/\/codeboss.in\/web-funda\/2012\/04\/04\/how-to-create-pages-in-wordpress-with-custom-coding\/\">Continue reading <span class=\"screen-reader-text\">How To Create Pages In WordPress With Custom Coding<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[57,65],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-php","tag-wordpress","entry"],"_links":{"self":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":0,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"wp:attachment":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}