Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #616808

    When I add something to a portfolio, the first one that is on the list is the last item that I added. Is there a way to make things alphabetical based on the title of the portfolio entry?

    #618959

    Hey jevry!

    Thank you for using Enfold.

    Edit the portfolio grid element then set the Order by option to Title.

    Best regards,
    Ismael

    #618962

    Hey!

    I’m sorry but I thought you’re using the Enfold theme. Please edit the template-portfolio.php file then look for this code:

    $avia_config['new_query'] = array("paged" => get_query_var( 'paged' ),  "posts_per_page" => $avia_config['portfolio_item_count'],  "post_type"=>"portfolio"); 
    

    .. replace it with:

    $avia_config['new_query'] = array("paged" => get_query_var( 'paged' ),  "posts_per_page" => $avia_config['portfolio_item_count'],  "post_type"=>"portfolio", "orderby"=>"title"); 
    

    Best regards,
    Ismael

    #618985

    Edited the template-portfolio.php file to reflect the changes you suggested, but no changes occurred. I’m not sure if I’m supposed to wait a certain amount of time or if the changes are supposed to be immediate.

    #620997

    Hey!

    I’m not sure why the changes are not working so we created a dynamic template and applied it to the “Gladiators” page. And then modified the query of the includes > helper-templates > portfolio function.

    Regards,
    Ismael

    #621032

    Fantastic. Thank you!

    #621943

    Hi,

    Glad we could help :-)

    Regards,
    Rikard

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

You must be logged in to reply to this topic.