Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter William

    (@daniel_ac)

    Hmm… Thanks alchymyth. To be honest, this doesn’t look very familiar to me. Would this really achieve what I’m looking for, but in a round-about way?

    I’m open to any other suggestions. I’ve got a feeling the solution is probably a simple one (slight modification of existing code?).

    Thread Starter William

    (@daniel_ac)

    Also: adding a custom field option for Links might help do the trick, but wading through Google search results hasn’t turned up much (most results are about using links in posts’s custom fields).

    Forum: Hacks
    In reply to: Taxonomy for Links?
    Thread Starter William

    (@daniel_ac)

    I think you’re probably right about the need to hack the admin panel page, but I admit, that looks a little more intimidating. Not sure if simply copying/pasting the right syntax won’t mess with the database in unexpected/damaging ways.

    Yeah, I’ve been looking for a plugin, but I’m surprised nothing has turned up after a day’s worth of searching. I just searched again, and found this:

    https://nerdlife.net/custom-taxonomies/

    Last updated in Feb 2010. A the time of this posting (for the benefit of future researchers), this seems fairly recent, so I’ll give that a shot. It may even have a built-in mechanism to do what I’ve been originally trying to accomplish. We’ll see. Thanks for your guidance on this!

    UPDATE: Scratch that. Two users report this plugin is presently not compatible with WP 3.01 (most recent version). Back to square one.

    Forum: Hacks
    In reply to: Taxonomy for Links?
    Thread Starter William

    (@daniel_ac)

    Hmm… let me tinker with this some more, then!

    Though, I’m curious about how this would work. While navigating the Admin Panel in WP 3.01, I can see under “Link Categories” that I can create as many link categories as I need. But there doesn’t appear to be an obvious way to assign where in the hierarchy each link category should go.

    How would one go about assigning link categories to their intended locations on the tree?

    Forum: Hacks
    In reply to: Taxonomy for Links?
    Thread Starter William

    (@daniel_ac)

    Thanks for responding!

    Just to be clear, I’m wanting to organize link categories, not post categories (I’ve often seen wp_list_bookmarks() recommended instead, but that still doesn’t seem to offer the result I’m looking for).

    I went ahead & tried using the wp_list_categories() template tag anyway, just to see if it’d work. Unfortunately, even after making the changes on my page template & uploading the file onto the server, my page behaved as though nothing had been changed.

    Forum: Hacks
    In reply to: CSS style swticher script

    Under your themes folder, there should be either a header.php or the main default file (I can’t recall the name of it at the moment). In that file, you’ll find the html “head” tag. I’d stick it in there.

    Thread Starter William

    (@daniel_ac)

    This is excellent! Thanks!

    Thread Starter William

    (@daniel_ac)

    You may have a point.

    The ability to select from the most commonly used tags is a convenience, but I’m also finding it makes users lazy (they just keep selecting from the same tags over and over when there are others that are more apt to their topic).

    Perhaps there’s a better solution than the one I’m describing, or I just have to get used to the idea of having multiple tags describe the same concept, or duplicate tags (with an extra “s” at the end, different capitalization, misspellings, etc).

    You’re in luck… I found a bit of code that does this (not a plugin), and it’s designed to do precisely what you ask. Courtesy of a commenter on a WordPress development site:

    ..add this to your functions.php file: (Just replace the 17 with the category ID of [category to be excluded]). That will keep it out of the feed, search results, and homepage.

    <?php
    function eventsFilter($query) {
    if ($query->is_feed || $query->is_home || $query->is_search) {
    $query->set(‘cat’,'-17′);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,'eventsFilter’);
    ?>

    Just as an FYI, I had to omit the opening and closing PHP tags in the above code and slip what was left between the existing PHP tags in the functions.php file to get it to work.

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