Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same here. Please let us know when the plugin is fixed. Disabled until then.

    i just spent 3 hours getting this to work in Divi by Elegant Themes. Should work for Extra as well.

    Create a child theme

    put this in the child theme’s root level functions.php

    if ( ! function_exists( 'et_pb_get_the_author_posts_link' ) ) :
    function et_pb_get_the_author_posts_link(){
    	global $authordata, $post;
    
    	// Fallback for preview
    	if ( empty( $authordata ) && isset( $post->post_author ) ) {
    		$authordata = get_userdata( $post->post_author );
    	}
    
    	// If $authordata is empty, don't continue
    	if ( empty( $authordata ) ) {
    		return;
    	}
    
    	if ( function_exists( 'coauthors_posts_links' ) ) {
        	$link = sprintf(
    			coauthors( null, null, null, null, false )
    		);
    	} else {
    		$link = sprintf(
    			'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
    			esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),
    			esc_attr( sprintf( __( 'Posts by %s', 'et_builder' ), get_the_author() ) ),
    			get_the_author()
    		);
    		}
    	return apply_filters( 'the_author_posts_link', $link );
    }
    endif;

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 7 years, 3 months ago by joelwroberts.
    • This reply was modified 7 years, 3 months ago by bdbrown.

    I’m having the same problem. I’ve tried two different google analytics accounts. I’ve tried Chrome, Firefox, and even IOS Safari. No matter what, I get the following error.

    “There was a problem with Google Oauth2 authentication process.”

    Please help!

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