WordPress.org

Ready to get started?Download WordPress

Forums

Populate a custom field from a mysql table (2 posts)

  1. Boyevul
    Member
    Posted 4 years ago #

    Each post has a custom field of "votes" that is automatically created. In my db, there is a table called "wp_votes" (unrelated to the custom field).

    What I want it to do is this:
    When the DB table "wp_votes" is increased by 1, I want that new number to be inserted and saved into the respective posts custom field of "votes", overwriting whatever was in that field before of course.

    (This is in conjunction with the vote it up plugin which has functions that I can't even begin to find explanations for. Apparently the only thing I can find are posts where people are more confused than I am.)

  2. Boyevul
    Member
    Posted 4 years ago #

    Still looking for a solution. Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic