• Hi,

    We formatted the website so that a custom author would appear at every post. However, when people search the website, they can’t search for author names, only for post content. How would we be able to fix this?

    The code we have is the following:

    <?php
    // Tue Aug 11 - fydk - Need to access custom 'Author' field instead of 'the_author()'
    $fydk_authorcustom = get_post_custom_values('Author');
    if( $fydk_authorcustom ) foreach ( $fydk_authorcustom as $authorkey => $authorvalue ) {
        if (in_category('102')) {
    		echo "Este análisis fue preparado por <b>$authorvalue</b> ";
    		}
    	else {
    	echo "This analysis was prepared by <b>$authorvalue</b> ";
    	}
    
    }?>

    Thanks!!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Searchable author name?’ is closed to new replies.