WordPress.org

Ready to get started?Download WordPress

Forums

Byline
Errors on old posts that didn't have Byline selections (1 post)

  1. slomeli79
    Member
    Posted 1 month ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.