FamousFish
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Category link hierarchyOK I managed to figure it out on my own.
First, in loop.php, the function get_the_category_list(); has to have the $parents parameter set to “multiple”. (e.g. get_the_category_list(‘, ‘, multiple);
Then in wp-includes/category-template.php I modified these lines in the function get_the_category_list();
From:
else {
$i = 0;
foreach ( $categories as $category ) {
if ( 0 < $i )
$thelist .= $separator;
switch ( strtolower( $parents ) ) {
case ‘multiple’:
if ( $category->parent )
$thelist .= get_category_parents( $category->parent, true, $separator );
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’ . $category->name.’‘;
break;
case ‘single’:
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’;
if ( $category->parent )
$thelist .= get_category_parents( $category->parent, false, $separator );
$thelist .= “$category->name“;
break;
case ”:
default:
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’ . $category->name.’‘;
}
++$i;
}
}To:
else {
$i = 0;
foreach ( $categories as $category ) {
if ( 0 < $i )
$thelist .= $separator;
switch ( strtolower( $parents ) ) {
case ‘multiple’:
if ( $category->parent )
//changed by me
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’ . $category->name.’‘.$separator;
$thelist .= get_category_parents( $category->parent, true,”);
//end change
break;
case ‘single’:
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’;
if ( $category->parent )
$thelist .= get_category_parents( $category->parent, false, $separator );
$thelist .= “$category->name“;
break;
case ”:
default:
$thelist .= ‘term_id ) . ‘” title=”‘ . esc_attr( sprintf( __( “View all posts in %s” ), $category->name ) ) . ‘” ‘ . $rel . ‘>’ . $category->name.’‘;
}
++$i;
}
}Same here
Forum: Plugins
In reply to: [WP Smart Sort] 404 Error with pretty permalinksYeah it works on default permalinks, but not SEO friendly ones. A fix would be nice…
Forum: Plugins
In reply to: [Contact Form DB] [Plugin: Contact Form 7 to Database Extension] No DataThere’s also a message at the bottom saying “No data available in table”