Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: Simple site integration
    Thread Starter miketerr

    (@miketerr)

    Hi. I tried that out but it doesn’t seem to work – Keeps showing parse errors. I also tried out another static page plugin for Word Press but it also gives errors. Is there any working plugin?

    Thread Starter miketerr

    (@miketerr)

    Hello. Thanks for the advice. How’s your plugin going?

    I’m still trying to figure out how to remove the links to previous months. I think it has something to do with this bit of code (Correct me if I’m wrong):

    // Get the next and previous month and year with at least one post
    $previous = $wpdb->get_row(“SELECT DISTINCT MONTH(post_date) AS month, YEAR(post_date) AS year
    FROM $wpdb->posts
    WHERE post_date < ‘$thisyear-$thismonth-01’
    AND post_status = ‘publish’
    ORDER BY post_date DESC
    LIMIT 1″);
    $next = $wpdb->get_row(“SELECT DISTINCT MONTH(post_date) AS month, YEAR(post_date) AS year
    FROM $wpdb->posts
    WHERE post_date > ‘$thisyear-$thismonth-01’
    AND MONTH( post_date ) != MONTH( ‘$thisyear-$thismonth-01’ )
    AND post_status = ‘publish’
    ORDER BY post_date ASC
    LIMIT 1″);

    Though I don’t know where to start messing around with it. It’s under the wp-includes\template-functions-general.php file.

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