Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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?

    #30954

    Hey,

    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

    to

    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.

    Cheers,

    James

    #30955

    hi,

    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 ?

    #30956

    hi, any help ?

    #30957

    Hi!

    Have you changed the query_string to the categories you want to show?

    What’s the site URL?

    Best regards,

    James

    #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.

    #30959

    Hey!

    Ok, what have you changed the $query_string to?

    Can you post the line?

    Regards,

    James

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘creating another page problem.’ is closed to new replies.