WordPress.org

Ready to get started?Download WordPress

Forums

Search results custom display order (5 posts)

  1. multimediator
    Member
    Posted 4 years ago #

    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,

  2. whooami
    Member
    Posted 4 years ago #

    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.

  3. multimediator
    Member
    Posted 4 years ago #

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

  4. whooami
    Member
    Posted 4 years ago #

    maybe.

  5. esmi
    Forum Moderator
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic