Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Fxam on "Custom Order Portfolio Filters Marble Theme"

$
0
0

Hi, I need help changing the order in which my portfolio categories appear on my site. http://newpage.felipeascacibar.com/

I have learnd that it is possible to:
'orderby' => 'slug',
changing the code in "portfolio.php"
but the theme I'm using doesn't have a
portfolio.php!?
I found some code in "theme_actions.php" but I cant figure out how to make it sort by slugs. Please Help!

/*
* Displays the isotope filters for the portfolio
*/
add_action( 'ebor_portfolio_filters', 'ebor_portfolio_filters_markup', 10 );
function ebor_portfolio_filters_markup(){
$output = '';
$output = '<ul class="filter">

  • ';

    $categories = get_categories('taxonomy=portfolio-category');
    foreach ($categories as $category){
    $output .= '

  • slug . '">' . $category->name . '
  • ';
    }

    $output .= '';
    echo $output;
    }
    /*


    Viewing all articles
    Browse latest Browse all 8245

    Trending Articles