Maybe I’m going about this the wrong way but this is my scenario… I would like to use WordPress as a CMS rather than a blogging platform. I have a website that will have somewhere between 25-50 pages and will not have any posts.

I’m looking to develop my own theme which should be fairly easy, however I’m getting a little confused on using The Loop functions.

I understand that:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

is used for a page that is pulling x number of posts, however in my scenario, I only want to pull the contents of a page rather than x number of posts. Do I need to create custom SQL queries?

All of the examples I keep running into are using The Loop for posts. If I’m just using static pages, do I even need to use The Loop? Can I just use the unique URL to pull a page out of the post column of the MySQL database?

I hope this is making sense.

Read more here: Guidance with The Loop for CMS


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: