August 5, 2010 at 7:19 am #351
hi, i need to create a another page for my website. the page with be similiar with blog page but different category.
for example, “blog” page with category inspiration, photoshop, tutorial, graphic design and character design.
another page that i want to create is name as “link” page with category vectors, protrait, font and poster.
different category with put in different page.
do you know how to do it?August 5, 2010 at 2:23 pm #30954
There are a few steps to set up a duplicate blog page.
1.) Duplicate template_blog.php and rename it (eg template_blog_new.php)
2.) Open up the new template_blog_new.php file and change the text:
Template Name: Blog Overview
Template Name: Blog New
3.) You need to edit the query_string to include the correct categories. Find this code:
$query_string = "cat=".$negative_cats."&paged=$paged";
and change it to:
$query_string = "cat=1,2,3,4,5&paged=$paged";
This would include categories with the ID’s 1 / 2 / 3 / 4 and 5. You can find the ID’s for the categories in WordPress admin, just look in the status bar for the ID number when hovering over the link to the category on the Post -> Categories page.
4.) Save and upload to your site.
5.) When you create a page you want to display this New Blog Page on, select Blog New (the name we gave the page in step 2) as the Page Template (on the right side of the page just under the Publish box).
If you have any questions about this, please let me know.
JamesAugust 6, 2010 at 3:08 am #30955
When i select “Blog New” on Page Template and select publish. The browser is show blank content.
I think might some errow of the script. can you check through with it ?August 7, 2010 at 12:34 am #30956August 7, 2010 at 11:55 am #30957
Have you changed the query_string to the categories you want to show?
What’s the site URL?
JamesAugust 7, 2010 at 11:02 pm #30958
yes, i have.
i have change all the thing need to change and upload it to server. but website appear error and all my website is blank.August 9, 2010 at 1:55 pm #30959
The topic ‘creating another page problem.’ is closed to new replies.