WordPress.org

Ready to get started?Download WordPress

Forums

Categories/Tags Not Working (15 posts)

  1. kylekid123
    Member
    Posted 1 year ago #

    Both my categories/tags don't work at all. Whenever you click on a category it will go to blog page 1.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    check your permalink settings http://codex.wordpress.org/Using_Permalinks

    does your theme have a archive.php, category.php or tag.php?

    if not, does the index.php contain a custom query?

    do the month or year archives work?

    if this does not help to solve your problem, please post a link to your site.

  3. kylekid123
    Member
    Posted 1 year ago #

    I use a custom structure for my permalink: /%category%/%postname%/
    My theme has a category-33.php i just checked the month and year archives don't work either.

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    category-33.php is a category tempalte which will only get used for archives of category 33; do you have posts of category 33, and does that category archive work properly?

    no archive.php??

    what is the code in index.php?

    (please use the pastebin - see http://codex.wordpress.org/Forum_Welcome#Posting_Code )

  5. kylekid123
    Member
    Posted 1 year ago #

    i don't have an archive.php

    index.php--- http://pastebin.com/fZCDyz8C

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    this is the section in index.php, I would be calling a 'custom query':

    <?php
                    $temp = $wp_query;
                    $wp_query = null;
                    $wp_query = new WP_Query();
                    $wp_query->query('cat=-49,-50,-52&paged='.$paged);
    ?>

    make a copy of index.php, save it as archive.php, and remove that section from archive.php

  7. kylekid123
    Member
    Posted 1 year ago #

    ok thanks i will do this. Will this fix everything? Categories/Tags and Archives?

  8. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    Will this fix everything? Categories/Tags and Archives?

    should do...

  9. kylekid123
    Member
    Posted 1 year ago #

    it worked thanks. I had to change the pagination though b/c it was copying my 148 blog posts. So lets just say each category had 10 posts it would go through all 10, but when you click 11 you get error.

    I have 1 more question for you: http://www.acneskinsite.com/
    If you go to my website i want to exclude widgets from certain pages, i downloaded widget logic it is working great except for 1 thing. I want my FB/Twitter widget and video to only show on the homepage, but if i use the plugin and put show on homepage only it will still show up on the blog page too. I think b/c my homepage is synced with the blog for blog post updates it might not be possible, maybe if i try Manuel conditional hash it would work?

    P.S after you see my website u might think why not go to the design company, well i decided to start learning things on my own and stop paying a lot of money for something i should be able to figure out.

  10. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    is_home() checks for the blog page; is_front_page() for the front page;

    http://codex.wordpress.org/Conditional_Tags

  11. kylekid123
    Member
    Posted 1 year ago #

    ok so is_front_page(123) will make it show only on homepage, that isnt the correct page id i just put 123

  12. kylekid123
    Member
    Posted 1 year ago #

    when i typed in is_front_page(10) it removed the widget from the homepage and the blog page

  13. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    I am not sure what you are trying to achieve;

    is_front_page() does not use any arguments: http://codex.wordpress.org/Function_Reference/is_front_page

  14. kylekid123
    Member
    Posted 1 year ago #

    ok in settings under reading: Front Page displays: A static page (select below) Front page: home Post page: go to my websites homepage: http://www.acneskinsite.com/ I'm trying to make the Fb widget twitter widget and the video only show on the homepage, but every time i try it will still show on my blog page too.

  15. kylekid123
    Member
    Posted 1 year ago #

    Front Page: Home
    Post Page: Blog

    those are the settings for reading

Topic Closed

This topic has been closed to new replies.

About this Topic