• Resolved djwesterfield

    (@djwesterfield)


    my NEW problem is that my main page will be used for new posts, but i want people to be able to go into one of my other pages to read posts that i make for those specific topics once they leave my new posts.

Viewing 15 replies - 1 through 15 (of 39 total)
  • Use categories (or tags)…then use the Category Widget or the Tag Clould Widget, and posts will be available on automatically in “pages” with other posts in that category (or tag).

    Thread Starter djwesterfield

    (@djwesterfield)

    i already have a header set up with the pages i want the posts to be sent to so the Tag Cloud Widget wouldnt really work for me.

    as far the category widget i tried installing it, but it just makes the categories, but i want the posts to be tied to a certain page, not a whole ‘nother thing

    I think you can just make a copy of your ‘other pages’ to create a category-##.php file (where ## is a category id) for each category. Then the Category Widget will send categories to the unique page for each category.

    Hope that makes sense.

    Thread Starter djwesterfield

    (@djwesterfield)

    so i have to copy over the link every time i make a post?

    that sucks

    That is not what I meant. If I understand your question, what I am suggesting is a one-time setup.

    You say you have ‘other pages to read posts’ of a specific topic. Lets say that the page template file is called specialtopic.php and you assign a category to the topics you want on that page. Get the category id. Say the id is 10, copy specialtopic.php to category-10.php and you are done for that topic.

    Lets say another topic is assigned a category id of 22. Copy the php file that you want to use for that topic (or rename it if no other category uses it) to category-22.php. Done!

    Then you can use the Category Widget to direct your viewers to the page that is unique to that category id.

    If that is not clear, please post one of the category names that you use, with its id and the name of the php file that you want to display that category.

    If pages are your nav bar ‘basis’ also consider this:
    How to easily display links to both Pages and Categories in the blog navigation header?

    Thread Starter djwesterfield

    (@djwesterfield)

    how do i copy it?

    ok lets say i have https://www.theowler.com

    i have three topics: Music, Life, Owls
    music’s page id is: https://www.theowler.com/?page_id=5
    life’s is: https://www.theowler.com/?page_id=7
    owls is: https://www.theowler.com/?page_id=9

    and i have Category Widget downloaded.

    Thread Starter djwesterfield

    (@djwesterfield)

    You use ftp, or a file manager supplied by your host to make a copy of the files. I can’t give exact directions because I don’t know what is available to you. If you are not able to copy the index.php file, then this whole approach will not work.

    Have you created a special template for your music page? If not, what is special about that page? How is it different from the page you see when you click on ‘Music’ in the Category Widget?

    Thread Starter djwesterfield

    (@djwesterfield)

    yeah i have an ftp client.

    yeah the template is someone special. i can copy the index.php, i just dont know where to copy it to and what to rename it, and then how to make it so my posts go directly to the specific pages

    Thread Starter djwesterfield

    (@djwesterfield)

    yeah i have an ftp client.

    yeah the template is someone special. i can copy the index.php, i just dont know where to copy it to and what to rename it, and then how to make it so my posts go directly to the specific pages

    Thread Starter djwesterfield

    (@djwesterfield)

    Thread Starter djwesterfield

    (@djwesterfield)

    sorry my internet gave out

    OK – I think I am on the right track now. You need to rename the special templates to make this work. You don’t have to copy index.php – that is for someone who does not have templates already. Pleae try this:

    1. Get the category id of one of your special categories. Lets use ‘Music’ as an example. To get the id, go to Admin->Posts->Categories and hover the mouse over the ‘Edit’ under the category name. In the browser status bar at the bottom of the page, you should see something like ‘&action=edit?cat_ID=4’. The 4 is the category id.
    2. Rename the ‘Music’ template to category-4.php.

    Now you should be able to go to your Home page (or another page that shows the Category Widget) and click on ‘Music’ to get to the special Music page.

    Let me know how that works.

    Thread Starter djwesterfield

    (@djwesterfield)

    ok step 1 was easy. i understand what my category id’s are now. what i dont understand is the ‘Music’ template.
    now since i have a new theme, so i have to copy the index.php 3 times for each of my pages and rename them to lets say category-4.php and leave them in my theme folder with everything else?

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘putting posts in different pages’ is closed to new replies.