Awesome Filterable Portfolio
Categories with a space done sort items "Car Manufacturers" (1 post)

  1. ashleyrodan
    Posted 3 years ago #

    It seems that all the categories which have a space and are not in one word will not sort the portfolio at all. There is no response.

    I have a feelings its somthing to do with this:

    //AFP Main Container
    		$output='<div class="afp-clear"></div>
    		<div id="afp-container">';
    		//Start Echo Categories
            $output.='<ul id="afp-filter">
            <li class="afp-active-cat"><a href="#" class="All">All</a></li>';
            foreach ( $cats as $cat ){
                	$output.='<li><a href="#" class="' .<strong> preg_replace("[^A-Za-z0-9]", "", $cat->cat_name) </strong>. '">' . $cat->cat_name . '</a></li>';

    Also I have had to change the ereg to preg


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Awesome Filterable Portfolio
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.