WordPress.org

Support

Support » Plugins and Hacks » Byline » Errors on old posts that didn't have Byline selections

Errors on old posts that didn't have Byline selections

  • I’m getting the following for older posts that don’t have a Byline name selected:

    “Warning: Invalid argument supplied for foreach() in /home/[username]/public_html/[sitename]/wp-content/themes/twentytwelve-child/content.php on line 53”

    Line 53 is the last line of the following

    <?php $terms = get_the_terms($post->ID, 'byline');
    		 $count = count($terms);
    		 if ( $count > 0 ){
    			 echo "<ul>";
    			 foreach ( $terms as $term ) {

    How do I get rid of this error?

    https://wordpress.org/plugins/byline/

  • The topic ‘Errors on old posts that didn't have Byline selections’ is closed to new replies.
Skip to toolbar