Custom Pages
-
Hi guys,
Okay so I have been trying to do this thing for ages but I keep getting stuck.
What I want to do is use WordPress as my posting tool.
I want to create my own HTML page where I can get all the information that I need using queries (pulling the data from the mysql database).
Firstly what I want to work out is why when I click on view source on any wordpress website it doesn’t display the code to connect to the database. Is this because it is on a different .php file? Perhaps wp-config.php?
If so then what is the advantage of putting it on a separate page?
Okay so the first thing I need to do to create my custom page is to pull all the information through just html coding. No styles no nothing, just text and only text.
So I was thinking what I really need to do is pull the title of my blog, get the loops for he latest 15 posts, most commented posts, and then most viewed posts.
However theres so many customised pages that are invovling offsets etc, that theres nothing simple enough that I can google to aid me in finding the correct code.
Now I wanted to just pull the posts, do I need to include echo in php in my query? Where as in the wordpress built in style customiser it doesn’t display anywhere that I need to create a echo tag.
The topic ‘Custom Pages’ is closed to new replies.