Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author TC.K

    (@wp_dummy)

    I don’t quite sure what you mean,

    Can you elaborate more?

    Thread Starter Gargantu4

    (@gargantu4)

    Thanks for the fast reply ??

    i would like to have a link who leads to a search result with specific parameters.

    For example:

    i have a custom type called Product with differents Manufacturers (custom taxonomies).

    So for each Manufacturer i have a dedicated page where i would like to have a link who leads to a search result with all the products with the same Manufacturer (taxonomies).

    How can i “build” that link?

    Plugin Author TC.K

    (@wp_dummy)

    You mean you want to add an extra link to taxonomy pages?

    Basically, all you have to do is editing your search.php (or depends on how your theme handle the search result). It is the default search result page that wp look for when searching.

    My plugin only due with the search query, and use the search.php to display the result. Hence, and modification on result (layout, search content, and etc)should be handle by search.php (if your theme got one).

    Thread Starter Gargantu4

    (@gargantu4)

    No, i mean i would like to link to a search results like this:

    <a href="<?php echo get_bloginfo('url').'?s=b2a055e039&formid=3231&cmf[0][value]='.$ManufacturerName.'+&cmf[1][metakey]=wpcf-status&cmf[1][compare]=1&cmf[1][value]=wqsfcmfall'?>"/> ALL PRODUCTS MADE BY <?php echo $ManufacturerName ?></a>

    But this not working in IE and CHROME due to the square brackets.

    Plugin Author TC.K

    (@wp_dummy)

    I see.
    You have to change the square brackets to url encoding.
    You can refer the the encode html tag from here.

    Thread Starter Gargantu4

    (@gargantu4)

    Yeah, understood.. but if i use the link without square brackets in FIREFOX dosent work.

    Help ??

    Plugin Author TC.K

    (@wp_dummy)

    Actually, you don’t need use this plugin to generate the link. Every taxonomy has it own link.

    Also, you can try appended the post type and taxonomy in the url,eg
    example.com?post_type=product&manufacturer=nokia
    This may work in some cases.

    Thread Starter Gargantu4

    (@gargantu4)

    Yeah it works!

    ..but it show the results on archive.php and not in search.php like your plugin. There’s some parameter i need to add to that string?

    Plugin Author TC.K

    (@wp_dummy)

    No, it is not about the parameter.
    It is about your archive.php template. You need to customize there to fit your need.
    This is beyond my plugin topic, so you should ask in other forum.

    Thread Starter Gargantu4

    (@gargantu4)

    ok, thanks. ??

    btw, your plugin is awesome, keep on coding ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Get a link for search results’ is closed to new replies.