Apply for membership

LiveSearch

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorfatihturan
    • CommentTimeAug 15th 2008 edited
     
    1. How i can exclude pages and some category from search results? Is there a way?
    2. I'm using the_excerpt() function for get posts on homepage. How i change "[...]" chars to "Read More" link (this is screenshot and description about this question: http://screencast.com/t/okTeJtEjW)?
    3. I'm using this codes for display page title. But i want to check bloginfo("description"); and bloginfo("name"); functions. If this functions returns nothing i will display something different title. How i can do this?
    • CommentAuthorDejan
    • CommentTimeAug 15th 2008
     
    1. you have to make search.php and before while in the loop put query posts and exclude what you want (you have some examples of query posts in my articles)

    2. search for excerpt reloaded plugin, i use it all the time it's great you can set a length, etc..

    3. hm i'm not sure about this one, but to check if something is empty wp uses ! sign, try wp codex
    • CommentAuthorfatihturan
    • CommentTimeAug 16th 2008
     
    Dejan i will continue to reply with step-by-step:

    1. When i add query_posts("cat=-14") then loop showing all posts and something wrong in here. I don't understand this situation.

    2. I will try this plugin. Thanks for suggestion. :=)

    3. Okay.
    • CommentAuthorDejan
    • CommentTimeAug 16th 2008
     
    about query posts, did you place it before while part?
    if yes there is not way it can't work

    check out my 'useful wordpress tricks" article and featured posts part where you have 3 ways to do this
    • CommentAuthorfatihturan
    • CommentTimeAug 17th 2008
     
    Okay. I excluded a category from search results (i hope there is no pagination problem). But how i can exclude one or more pages? I can't find any parameter for this situation from WP codex.
    • CommentAuthorDejan
    • CommentTimeAug 20th 2008
     
    well for category you use cat=-3 for example but for pages you just use id=-5 etc...
    • CommentAuthorfatihturan
    • CommentTimeAug 26th 2008
     
    If i insert your code snippet like this:

    <?php query_posts("cat=-5&id=-133,-132,-134,-135") ?>

    Search page returning with all posts. All posts showing. Something wrong in there. But what? :) I can't solve.
    • CommentAuthorDejan
    • CommentTimeSep 8th 2008
     
    it should be working, did you put it just before "while"?
    • CommentAuthorfatihturan
    • CommentTimeSep 28th 2008
     
    Hello Dejan.

    I solved this problem with Simply Exclude plugin.

    Aynway thanks for everything. :)
    • CommentAuthorartcouret
    • CommentTimeJan 7th 2010
     
    http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/ really helped me too. online pokies
Add your comments
    Username Password
  • Format comments as