#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    6
    Rep Power
    0

    How remove post from database, when...


    Hi guys,
    how can I remove Wordpress posts from MySQL database, when in post are 4 and more links? I begin with

    SELECT *
    FROM `wp_posts`
    WHERE `post_type` = 'post'

    and the rest?:-)
    Thanks a lot Peter
  2. #2
  3. SQL Consultant
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2003
    Location
    Toronto Canada
    Posts
    27,262
    Rep Power
    4279
    Originally Posted by sikec
    and the rest?:-)
    you're assuming we know the structure of the wordpress database, and we don't

    perhaps ask your question in a wordpress forum?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

IMN logo majestic logo threadwatch logo seochat tools logo