Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey guys, I found this, haven’t checked it out yet but wanted to post it:
    https://www.gudlyf.com/archives/2005/03/08/wordpress-plugin-category-visibility/

    Looks very promising!

    Thread Starter nycjournal

    (@nycjournal)

    I fooled around a bit with mysql to try to figure out what is going on. Manually editing one of the imported MT posts and setting post_status to ‘private’ then fixes that post, works in WP Admin now, cool. Since that worked I figured hey, why not do a mass update of post_status and set it to ‘private’ so that all the posts work, so I do: [1]
    UPDATE wp_posts SET post_status=’private’ WHERE post_author=’2′;
    But no love, editing one of these newly changed imported posts that I just UPDATEd, using WP Admin, setting Private doesn’t stick. Now I notice something else, Pings is not checked in WP Admin. Ah ha. Now in WP Admin I set both Post Status AND Pings to a value (Private / Open) and poof, WP Admin now saves the post as expected. OK, lets fix them all:
    UPDATE wp_posts SET ping_status=’open’ WHERE post_author=’2′;
    Poof. MT Imported posts now work in WP Admin as desired.
    In conclusion I guess import-mt.php needs to make sure that post_status is not NULL (should default to publish — which I think it does, but one or more of my posts did not have a value set), and ping_Status is not NULL, they need to set to the default defined value of publish or open, but never NULL. I could be wrong about all/some of this though, but it works now.
    [1] Using phpMyAdmin and editing one post manually by setting it to ‘private’ likely works because behind the scenes, mysql is also setting the values which were currently NULL (but should not be NULL) to their default values (ala ping_status to open rather then NULL).

    Thread Starter nycjournal

    (@nycjournal)

    Manually changing a post_status for a post in the database to private seems to have it show up in the admin as Private. But that doesn’t help why the php isn’t able to do it from the admin frontend. In the mean time I think I’m going to mark all the imported posts as Private until a solution can be found. I compared a record of an imported MT post and a in-WP created post and they look the same to me. I guess I need to look into the php to see what is going on. Only difference other then data is that the MT imports have a post_author of 2 while the default WP ones are 1. I shall continue to look around …

    Thread Starter nycjournal

    (@nycjournal)

    That is interesting. I knew something funny was going on there. If I login as the imported MT user I now see those posts that I marked as ‘Private’ as the admin user .. though they aren’t marked as Private after logging in as the MT user id.
    Now if I edit a post while logged in as the MT imported ID, I see that under Post Status no option is checked (Publish, Draft, Private), and checking one and saving it results in nothing still being checked. At least the posts aren’t deleted, but we still need to figure out how to be able to mark them as private (if possible).
    nyc

    Thread Starter nycjournal

    (@nycjournal)

    Well its good to know I’m not alone .. I wonder if the inport of the MT posts aren’t in the same format as normal WP posts hence trying to set one to private whacks them somehow. I’m not a coder but I’ll try to take a peek in the database to see if the data for a MT inported post is different then a WP post (I am guessing this may be the problem and the code isn’t aware of it).

Viewing 5 replies - 1 through 5 (of 5 total)