How do I create a custom WordPress page? -


I want my WordPress blog to be a page called Music. On that page, I will inquire the DB for posts with category music and then I will change around the feelings and feelings of the posts. So I can not just put a link to / categories / music / because I want to do custom work on posts.

Should I put this code in a different php file and link to it? I think if I do this I can get access to all the good WordPress API calls.

I was thinking about using a filter, but I'm not sure what to use, except for the the_title I was thinking something like the following So far, I can not check the title.

  function show_music () {if (page_page) & Amp; The_title ('', '', false) == 'music') {echo "found here"; }} Add_filter ('pre_get_posts', 'show_portfolio');  

How can you go about this?

Insert the code below into the file, and then put the file in the Theme folder. You can then create a page by using Wordpress pages and select a page with the name you enter in this comment:

  / * Template name: something goes here * /  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -