Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    can you share your code used to add gdlr-core-page-builder post meta to the content analysis please?

    As far as I understand, this builder doesn’t have a free version, right?

    Thx

    Thread Starter UlisesFreitas

    (@ulisesfreitas)

    function sp_filter_content_content_analysis($seopress_get_the_content, $seopress_get_the_id) {
    $cf = get_post_meta($seopress_get_the_id, 'gdlr-core-page-builder', true);
    return $cf;
    }
    add_filter('seopress_content_analysis_content', 'sp_filter_content_content_analysis', 10, 2);
    function sp_content_analysis_content($content, $id) {
    //$content = default WP editor
    //$id = current post ID
    //Example to add your custom field to content analysis
    //Flexible content must be called like this: name_of_your_flexible_content_0_name_of_your_field
    $cf = get_post_meta($id, 'gdlr-core-page-builder', true);
    $content = $cf;
    return $content;
    }
    add_filter('seopress_content_analysis_content', 'sp_content_analysis_content', 10, 2);

    Hi I added 2 snippets following the SEO Press documentation, the page builder is stored in post_meta as gdlr-core-page-builder

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    This code should work:

    	function sp_content_analysis_content($content, $id) { 
    		//$content = default WP editor 
    		//$id = current post ID 
    		//Example to add your custom field to content analysis
    		//Flexible content must be called like this: name_of_your_flexible_content_0_name_of_your_field
    		$cf = get_post_meta($id, 'gdlr-core-page-builder', true); 
    		$content = $content.$cf; 
    		return $content;
    	}
    	add_filter('seopress_content_analysis_content', 'sp_content_analysis_content', 10, 2);

    However, the content saved in “gdlr-core-page-builder” post meta must be readable, ie, not encoded. Otherwise, we’ll not be able to scan it.

    Thread Starter UlisesFreitas

    (@ulisesfreitas)

    Hi I try this two but doesn’t work.

    $cf = get_post_meta($id, 'gdlr-core-page-builder', true); 
    
    $cf_decoded = json_decode($cf);
    $content = $content.$cf_decoded; 
    $cf = get_post_meta($id, 'gdlr-core-page-builder', true); 
    
    $content = $content.unserialize($cf);
    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Please provide a link to download your theme + page builder by sending us an email to contact[at]seopress[dot]org.

    Thanks

    Thread Starter UlisesFreitas

    (@ulisesfreitas)

    Hi Benjamin, In fact, I am writing on behalf of Enrique Camba and he has a premium account with you, there is a ticket written there where a Drive link is shared.

    But it’s been 6 days since it was written and they haven’t answered me. If you can review it, do me a favor.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We’re on it ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GoodLayers Themes and SEO Press’ is closed to new replies.