Forum Replies Created

Viewing 12 replies - 121 through 132 (of 132 total)
  • Thread Starter Xander

    (@xander)

    Whoops, get_posts doesnt have the little -x trick to exclude one category, but query_posts works fine. The line from wp-rss2.php that did the trick:

    <?php $items_count = 0; query_posts(‘cat=-6’); if ($posts) { foreach ($posts as $post) { start_wp(); ?>

    The only addition is the query_posts(‘cat=-6’); piece… the feeds come out with all other categories, just the way I want it.

    Posted here in case it comes up in someone’s search for the same info…

    Thread Starter Xander

    (@xander)

    I think the secret is to build your own query string and bypass the wordpress functions intended to streamline the process… when you get into the $wpdb functions you can find some stuff. I ended up doing a variation of this, altering the events calendar plugin to display only listings in the instance that meta_value = whatever… works like a charm ??

    Thread Starter Xander

    (@xander)

    It was a conflict with the category visibility plugin, in case anyone searches for this trying to solve their own problem ??

    Forum: Plugins
    In reply to: Event Calendar for WP2.0
    Thread Starter Xander

    (@xander)

    FYI EC 3.0.4 is out and it looks to be fully compatible with WP2.0.1, including the all events list.

    I had some trouble with saving posts… when I view source on post.php there was a section that looks like this:

    <input name="referredby" type="hidden" id="referredby" value="<div id='error'>
    <p class='wpdberror'><strong>WordPress database error:</strong> [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY post_id, meta_key' at line 1]
    SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN() ORDER BY post_id, meta_key
    </div>redo” />

    I tracked it to:

    url_to_postid($_SERVER['HTTP_REFERER'])

    This code from “edit-form-advanced.php” outputs the error. I’m not sure what it does, so I’m commenting out this part of the conditional statement. Everything seems to work fine now, but what is this functionality for? Is it broken or did I do something daft? ??

    Either I’m crazy or the links to classes/functions-post up there just aren’t working. Mighty peculiar, and my blog is now dead in the water. I hope a fix comes in soon!

    Thread Starter Xander

    (@xander)

    I never did find the way to make this happen… but I did accomplish what I wanted to do by sorting in the usual way with get posts and then throwing the array through some if statements. Not elegant, but it worked for what I wanted to do (make a review database where a user can click on “top rated” or “before 2002” or whatever to see just a subset of all reviews)…

    Forum: Fixing WordPress
    In reply to: GUID for posts

    What if I don’t like my GUIDs… can anyone ever see them? Do they matter at all?

    Forum: Plugins
    In reply to: blog torrent

    Unless I read it wrong, regardless of whether you already have bittorrent you’re going to need to download another piece of software to install? Sounds bunk to me…

    Thread Starter Xander

    (@xander)

    Thank you… looks like I can do what I want to do without messing around too much!

    Two custom field plugins helped a great deal… get custom field values and rc:custom_field_gui. After that it’s just a matter of hacking the heck out of category-x.php (where x is the category for reviews in this case).

    So bizarre… I just have to give up the use of the word “curl”? But how will I live?

    Looks good indeed!

Viewing 12 replies - 121 through 132 (of 132 total)