Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, I’ve done some fix.

    function sela_footer_entry_meta() {
    	/* translators: used between list items, there is a space after the comma */
    	$category_list = get_the_category_list( __( ', ', 'sela' ) );
    
    	/* translators: used between list items, there is a space after the comma */
    	$tag_list = get_the_tag_list( '', ', ' );
    	$enable_tags = true;
    
    	if ( ! sela_categorized_blog() ) {
    		// This blog only has 1 category so we just need to worry about tags in the meta text
    		if ( '' != $tag_list ) {
    			$meta_text = __( 'Tagged: %2$s', 'sela' );
    		} else {
    			$meta_text = __( '<a href="%3$s" title="Permalink to %4$s" rel="bookmark">Permalink</a>.', 'sela' );
    			$enable_tags = false;
    		}
    
    	} else {
    		// But this blog has loads of categories so we should probably display them here
    		if ( '' != $tag_list ) {
    			$meta_text = __( 'Posted in: %1$s | Tagged: %2$s', 'sela' );
    		} else {
    			$meta_text = __( 'Posted in: %1$s', 'sela' );
    		}
    
    	} // end check for categories on this blog
    
    	if($enable_tags) {
    		printf(
    			$meta_text,
    			$category_list,
    			$tag_list,
    			the_title_attribute( 'echo=0' )
    		);
    	}
    }

    I have the same problem. Waiting for response. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)