Your account expired support, please renew to get your support.

HomePage Forums Themes Support Freshio – Organic & Food Store WordPress Theme First blog post shows Warning: Attempt to read property “ID”

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23918
    macken920
    Support Expired

    Hi when there is no next blog post there is an error – Warning: Attempt to read property “ID” on string in /home/platne/serwer144431/public_html/ouritsumatcha.pl/wp-content/themes/freshio/inc/template-functions.php on line 667

    example url https://ouritsumatcha.pl/zielona-herbata-pobudza-czy-uspokaja/

    I don’t know why in my account i can see “Your account expired support, please renew to get your support.” i renewed it where can i update license key ?

    THX!

    #23946

    Hello,

    #1. Please copy this code and paste to file functions.php ( child-theme):

    function freshio_post_nav(){
    		$prev_post = get_previous_post();
    		$next_post = get_next_post();
    		$args = array();
    
    		if( is_a( $next_post , 'WP_Post' ) ){
    			$args['next_text'] = get_the_post_thumbnail($next_post->ID, array(110, 110)) . '<span class="nav-content"><span class="reader-text">' . esc_html__('NEXT', 'freshio') . ' </span>%title' . '</span> ';
    		}
    
    		if( is_a( $prev_post , 'WP_Post' ) ){
    			$args['prev_text'] = get_the_post_thumbnail($prev_post->ID, array(110, 110)) . '<span class="nav-content"><span class="reader-text">' . esc_html__('PREV', 'freshio') . ' </span>%title' . '</span> ';
    		}
    
    		the_post_navigation($args);
    	}

    #2. Ok, I updated your account, please recheck.

    #23957
    macken920
    Support Expired

    Thank you ! It helped 🙂

    #23960

    Ok,let me know if you need to help.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.