WordPress.org

Ready to get started?Download WordPress

Forums

WebLibrarian
[resolved] Search doesn't work (6 posts)

  1. kuokchou
    Member
    Posted 1 year ago #

    I tried to create a page with the shortcode [weblib_searchform]. It appears fine on my page or post.

    But when I tried to search something, it kicks me back to my homepage.
    On my URL BAR, it appears to be;
    http://10.3.3.11/wordpress/?searchby=title&searchbox=execution&weblib_orderby=barcode&weblib_order=ASC

    But it's actually my homepage.

    Can someone help? Thanks!

    http://wordpress.org/extend/plugins/weblibrarian/

  2. kuokchou
    Member
    Posted 1 year ago #

    It's so weird... I somehow figured out somewhing... this code in the URL,
    ?p=1048.

    Coz' when I add this into my URL, the search does work!

    http://10.3.3.11/wordpress/?p=1048?searchby=title&searchbox=execution&weblib_orderby=barcode&weblib_order=ASC

    PS: You won't be able to check out the link coz' it's in my company intranet

  3. kuokchou
    Member
    Posted 1 year ago #

    Okay.. now I know what's the problem. It's because functionsearch_form doesn't get the permalink (?p=1048), but the functionitem_list has something like $moreinfourl = get_permalink();

    But.. I still don't know how to solve it...grrrrrrrr

  4. Robert Heller
    Member
    Plugin Author

    Posted 1 year ago #

    I'd suggest two solutions:

    1) Change your site's permalink settings: on the dashboard select Settings->permalinks, then select something other than the 'default'.

    2) Set the actionurl and method parameters in the search form shortcode:

    [weblib_searchform actionurl='/?p=1048' method='post']
    [weblib_itemlist holdbutton=1 inlinemoreinfo=1]
  5. kuokchou
    Member
    Posted 1 year ago #

    Thanks! Got to try it the first thing tomorrow morning when I reach office. Hope it works.

  6. kuokchou
    Member
    Posted 1 year ago #

    Changing the permalinks setting works!! THANKS!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags