Home Forums Bee WordPress Theme Porfolio Sort

This topic contains 1 reply, has 2 voices, and was last updated by  Johnny 3 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3102

    themadpoet
    Participant

    Is it possible to sort a portfolio by the post slug instead of the title? The title sometimes begins with an indefinite article (a, an, the) that throws off the sort order. I don’t use those in slugs so the sort would be more accurate.

    Thanks,

    Mike

    #3107

    Johnny
    Participant

    Hi, yes you could. but need some code hacking. please try this:
    -in portfolio module setting, option ‘order by’ leave it ‘please select’;
    -open file functions/functions-view-module.php and find line 596(or about):

    if($module_select_orderby != '-1'){
    				$orderby = $module_select_orderby;
    			}else{
    				$orderby = 'none';
    			}

    update it with:

    if($module_select_orderby != '-1'){
    				$orderby = $module_select_orderby;
    			}else{
    				$orderby = 'post_name';
    			}

    this will make order by post slug.
    Best

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.