WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Categories (2 posts)

  1. olivier280602
    Member
    Posted 6 years ago #

    Hello Everybody,

    I'm using two different version of WP in two different sites. One has a wp-categories table and the second one doesn't.

    I used to show parts of my blog post on my site to attract people into my blog using a simple SQL query like


    SELECT
    ID,post_title,post_content FROM wp_posts WHERE post_content != '' ORDER BY post_date DESC LIMIT 5

    Up to now, I didn't even though about sharing my posts into categories or such so everything was working excellently.

    Nevertheless, nowadays I've different categories in my blog and I'd like to show into my site(s) posts related to this very site. So 1 category's posts go to one site and so on.

    But, as far as I search, in my DB all the [wp-posts][post_category] are set to 0, even if post are in different categories (and appear so in my blog). So what? I though I could have my post selected in function of those categories but all those are set to 0.

    Could someone tell me what the problem with my categories? I do highlight the point that I already have different posts into different categories and that my blog is able to show those categories' posts correctly.

    Thank for your help and sorry not to have been able to shorten that much.

    Rui

  2. MichaelH
    Member
    Posted 6 years ago #

    The latest versions have no category table--instead categories for posts and links, and tags, are housed in the three new terms tables.

Topic Closed

This topic has been closed to new replies.

About this Topic