WordPress.org

Support

Support » Plugins and Hacks » Awesome Filterable Portfolio » Categories with a space done sort items "Car Manufacturers"

Categories with a space done sort items "Car Manufacturers"

  • 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

    http://wordpress.org/extend/plugins/awesome-filterable-portfolio/

  • The topic ‘Categories with a space done sort items "Car Manufacturers"’ is closed to new replies.
Skip to toolbar