Using WordPress as a CMS
-
Suppose you have WordPress running at https://example.com/. Suppose further that you want your blog to be located at https://example.com/blog/. How can this be done? I have tried several solutions that I’ve found but non of them seem to work. I would really appreciate any help with this issue.
This is what I did:
1. Created a blog.php page with the following code and uploaded in the theme Directory that I’m using:
<?php
/*
Template Name: Blog
*/
// Which page of the blog are we on?
$paged = get_query_var(‘paged’);
query_posts(‘cat=-0&paged=’.$paged);
// make posts print only the first part with a link to rest of the post.
global $more;
$more = 0;
//load index to show blog
load_template(TEMPLATEPATH . ‘/index.php’);
?>
2. The I Logged into WordPress and created a page named “Blog” with template “blog”.
3. Updated permalinks structure to begin with “/blog/”.
4. set front page via Administration > Options > Reading panel.
For some reason it does not work for me. The site is mercadeoxinternet.com
Thanks in advance.
- The topic ‘Using WordPress as a CMS’ is closed to new replies.