WordPress.org

Support

Support » How-To and Troubleshooting » Search results custom display order

Search results custom display order

  • multimediator
    Member

    @multimediator

    I am using WP as a CMS with no blog. My client has 15 video pages with similar content text. When a search returns results it lists those results in order of the most recently created pages first. My client would prefer to be able to prioritize the results based on which page contains the video he would most like to sell at any given time.

    Is there a way to set a priority order for each page causing them to display in a preferred order when multiple results are returned due to similar content?

    Example: Several pages contain the text “Chris Ward”. When a user searches for “Chris Ward” they are given a list of all the pages containing that key phrase, in the order of most recently created page to the earliest created page.

    Is there a way to assign a priority to each page so the results display in an order that we pre-determine?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is there a way to set a priority order for each page causing them to display in a preferred order when multiple results are returned due to similar content?

    a priority based on what? unless its something mysql can “use”, no.

    look through the search related plugins, or get out your handy dandy o’reilly’s PHP book, and earn a little of that clients money.

    multimediator
    Member

    @multimediator

    a priority based on the clients constantly changing preference. Each page would have a numerical weight assigned which would be changeable anytime.

    maybe.

    esmi
    Forum Moderator

    @esmi

    What about a custom field? Could something like:

    global $wp_query;
    query_posts(
    	array_merge(
    		array('meta_key' =>''foo','orderby' => 'meta_value'),
    		$wp_query->query
    	)
    );

    be used to customise the search result ordering?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search results custom display order’ is closed to new replies.