Forum Replies Created

Viewing 15 replies - 1 through 15 (of 42 total)
  • There is a way to export blogdrive entries to Movabletype. I found a template that would do that here: http://design.blogdrive.com/archive/cm-6_cy-2004_m-6_d-4_y-2004_o-145.html

    After that is over, all you need is to import the entries from MT into WP via: http://wordpress.org/docs/tutorials/import-mt/

    Hope that helped! Solution might be a wee bit late but better late than never 😛

    Thread Starter zaaba

    (@zaaba)

    BTW, the code is as follows just in case the page link above goes dead:

    <?php
    require('./wp-blog-header.php');

    $start = '100';
    $end = '101';

    for ($i=$start; $i<=$end; $i++){
    $result = $wpdb->query("INSERT wp_post2cat VALUES (NULL, $i, 1)");
    if($result == 1) {
    $count++;
    }
    }
    echo "$count rows affected.";
    ?>

    Thread Starter zaaba

    (@zaaba)

    Sweet! Worked like a charm. What’s best was I knew how to alter the code to fit certain posts that were from another catagory. Thanks alot Kafkaesqui! That really made my day. Whoo hoo!

    Now to sort out the archives PROPER 🙂

    Cheers!

    Thread Starter zaaba

    (@zaaba)

    I’ve managed to copy all of my old posts AND managed to change the authors to the right people. The problem is now that the old posts have no categories assigned.

    Instead of manually clicking EDIT on the wp-admin screen for each and every one of these entries (OVER 200++!!!), is there a mysql command I can run so that I assign all posts with post_ID > 50 to the default category?

    That would be SOO useful. Thanks!

    Thread Starter zaaba

    (@zaaba)

    Thank you! I’ll do that tonight and see what happens…

    Thread Starter zaaba

    (@zaaba)

    Sweet! Will try it out when I get the chance Kitten. Thanks! Finally… a PLUGIN!

    Thread Starter zaaba

    (@zaaba)

    Ooh pvicnan, that really is nasty. You might want to check the !$single rule again because nothing is showing up on single-post mode.

    Thread Starter zaaba

    (@zaaba)

    Anonymous & Justin: From what I know, and correct me if I’m wrong, the reason why links result in blank pages is because:
    1. The loop has not been reset to ONE. If that is the case, loops will break because the loop threshold has been met. Remember to put the revised WP loop end (see above post). I see you have already done this Justin so ignore this point 🙂
    2. Another reason is the !$single rule has been invoked. You might want to try toggling this on/off by deleting/adding the ! symbol. Remember that the ! results in the NOT logical operator. If you have the the !$single rule in your filter, the loop will NOT SHOW if you are in “single-post” mode (e.g. what happens when you click on a permalink). If you want the loop to show regardless of whether you are in full index mode or single post (permalink) mode then just delete the && !$single rule. Ommitting the ! altogether results in the loop ONLY SHOWING if in single-post mode.
    For example, my site at http://www.truedeath.com has 2 loops: the central blog loop and the photoblog loop. The central blog loop calls all posts BUT from the photoblog category. The photoblog loop at the side calls posts from ONLY the photoblog category and ONLY if NOT in single-post mode ie: only if we’re on the main index page else it will be hidden.
    Ah, but this posed a problem: what if the visitor clicks on a permalink of a photo? The index file would not display it because the category filter would filter it out. My solution then was to create another page – photoblog.php which is the exact clone of index.php but with the photoblog category filter reversed so that it would ONLY show posts from the photoblog category. This was the fastest workaround I could come to without uber hacking the index file any further than I had already done above.
    The operating logic above is really quite simple. I guess if you want to have more complex rules you’ll have to tinker alot more with the if statements. If its only 1 index file that you want to worry about then perhaps it would be best to come up with many loops (as in MANY loops) with each having its own set of rules. You can set some to only appearing in single-post mode and some in all modes but excluding certain categories. This is probably very cumbersome but I’m sure with much PHP engineering and dilligence you could combine many of those rules and if statements into one single block.
    Might I suggest writing out on a sheet of paper what exactly you want visible at any time and then cater those rules to fit around those permutations. Remember to take note of the ! NOT operator! Good luck!

    Forum: Fixing WordPress
    In reply to: Single Post Pages

    Try doing this: http://www.scriptygoddess.com/archives/005140.php
    And apply filters to the loop itself. There’s a post somewhere on thie forum on how to do this.

    Forum: Fixing WordPress
    In reply to: Single Post Pages

    Try doing this: http://www.scriptygoddess.com/archives/005140.php
    And apply filters to the loop itself. There’s a post somewhere on thie forum on how to do this.

    You have two ways to go about it: One is by filtering out categories for the entire page. You can achive this by adding $cat = '#' at the top of your WP header. The page will then display only posts from category #. You can select more categories to display by adding to the line seperated by a space like so: $cat = '3 4 5' which only displays categories 3, 4 and 5.
    Putting a minus sign: -# results in a category being filtered out. So you can have $cat = '-5' which will display all posts but those from category 5.
    The technique above is for PAGE-WIDE category filtering.
    From WP 1.2, you can have multiple loops on one page. A post to controlling these loops as to the number of posts they will display and from what category can be found here:
    http://wordpress.org/support/10/6012/
    You may want to put a WP loop in a column then apply the necessary filters on them. See the post for more details.

    Problem solved! See here for limiting posts, filtering categories on multiple WP loops:
    http://wordpress.org/support/index.php?action=vthread&forum=10&topic=6012&page=0

    bump!

    Thread Starter zaaba

    (@zaaba)

    Its for 1.2 but somehow even I can’t get it to work! I’m not too sure why though. Still fixing it…

    Thread Starter zaaba

    (@zaaba)

    Yeap, fixed it! Thanks Beel.

Viewing 15 replies - 1 through 15 (of 42 total)