WordPress.org

Ready to get started?Download WordPress

Forums

Search handmade tables (3 posts)

  1. brand_infector
    Member
    Posted 8 years ago #

    I've been using WordPress for a while now and love it. I'm actually not a programmer but nevertheless I wrote a little plugin that would display selected brands with logo and info. This works very nicely. You can check it out at http://www.brandinfection.com/brands

    My question after having tried to figure out the problem myself, googling for search plugins (yes i've tried knebble and randomfrequency), reading through the wp support and codex pages... is:
    how can I integrate another filter to search a completely different table like my brands table?

    maybe adding another filter to my already used SearchPages plugin?

    maybe tweaking this one ?

    function add_paged_search_where($where) {
    global $wp_query;
    if (!empty($wp_query->query_vars['s'])) {
    $where = str_replace(' AND (post_status = "publish"', ' AND ((post_status = "static" or post_status = "publish")', $where);
    }
    return $where;
    }

    add_filter('posts_where', 'add_paged_search_where');
    ?>

    I'd be very happy about your thoughts.

    Best regards, Nader

  2. logista
    Member
    Posted 8 years ago #

    Sorry I can't answer your question, but I'm wondering if you'd consider releasing your "handmade table" plugin? I'm assuming that you can administer the table from the Admin pages in WordPress. I've been looking for something like this

  3. brand_infector
    Member
    Posted 8 years ago #

    too bad nobody has answered my post yet. i still don't figure how it works.

    yes i'm considering releasing it but it'll still take some time. there's a bit of cleanup i have to do.

Topic Closed

This topic has been closed to new replies.

About this Topic