Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter newzdotit

    (@newzdotit)

    Thanks for replying, but how to make it automatically?
    I can’t purge all cache manually every time.

    I W3TC settings under “Network Performance & Security powered by Cludflare” I enabled:

    Page caching: flux cloudflare on post modifications

    but the error still remains

    thanks

    Thread Starter newzdotit

    (@newzdotit)

    With the last two update the inverse scene. Now I can see visual mode, and can’t go to text mode. lol

    Hello, I have the same problem

    I was able to send post to telegram channel, suddenly it stopped working. The log seems ok.

    thanks for your help

    • This reply was modified 7 years, 9 months ago by newzdotit.

    hello, I have the same problem, with image attachment page: 404 when /amp ending with o without ending /

    Hello, can you help me with my blog-item.php ?
    There are two // print the blog thumbnail
    how to edit?
    thanks

    The code is here:

    <?php

    // Print blog item
    function print_blog_item($item_xml){
    $additional = ”; $additional_html = ”;

    $offset = find_xml_value($item_xml, ‘offset’);
    $pagination = find_xml_value($item_xml, “pagination”);
    $view_all_blog = find_xml_value($item_xml, ‘read-the-blog’);
    if( !empty($view_all_blog) && $view_all_blog != ‘None’ ){
    global $gdl_admin_translator;
    if( $gdl_admin_translator == ‘enable’ ){
    $translator_view = get_option(THEME_SHORT_NAME.’_translator_read_the_blog’, ‘Read All News’);
    }else{
    $translator_view = __(‘Read All News’,’gdl_front_end’);
    }
    $page_slug = get_posts(array(‘name’=>$view_all_blog, ‘post_type’=>’page’));
    $additional_html = ‘<a href=”‘ . get_permalink($page_slug[0]);
    $additional_html = $additional_html . ‘” class=”view-all-projects”>’;
    $additional_html = $additional_html . $translator_view . ”;
    }

    print_item_header( find_xml_value($item_xml, ‘header’), $additional, $additional_html );
    global $paged, $sidebar_type, $blog_div_size_num_class;

    if(empty($paged)){ $paged = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1; }
    if($paged != ‘1’){ $offset = 0; }

    // get the item class and size from array
    $item_type = find_xml_value($item_xml, ‘item-size’);
    $item_class = $blog_div_size_num_class[$item_type][‘class’];
    $item_size = $blog_div_size_num_class[$item_type][$sidebar_type];

    // get the blog meta value
    $num_fetch = find_xml_value($item_xml, ‘num-fetch’);
    $num_excerpt = find_xml_value($item_xml, ‘num-excerpt’);
    $full_content = find_xml_value($item_xml, ‘show-full-blog-post’);

    $category = find_xml_value($item_xml, ‘category’, false);
    $category = ( $category == ‘All’ )? ”: $category;

    $order = find_xml_value($item_xml, ‘order’);
    $orderby = find_xml_value($item_xml, ‘orderby’);

    // start fetching database
    query_posts(array(‘post_type’=>’post’, ‘paged’=>$paged, ‘order’=>$order, ‘orderby’=>$orderby,
    ‘category_name’=>$category, ‘posts_per_page’=>$num_fetch, ‘offset’=>$offset ));

    // printing each blog function
    echo ‘<div class=”blog-item-holder”>’;
    if( $item_type == ‘1/4 Blog Grid’ || $item_type == ‘1/3 Blog Grid’ ||
    $item_type == ‘1/2 Blog Grid’ || $item_type == ‘1/1 Blog Grid’){

    print_blog_grid($item_class, $item_size, $num_excerpt, $full_content, $item_type);
    }else if( $item_type == ‘1/1 Blog List’ ){
    print_blog_list($item_class, $item_size);
    }else if( $item_type == ‘1/4 Blog Grid List’ || $item_type == ‘1/3 Blog Grid List’ ||
    $item_type == ‘1/2 Blog Grid List’ || $item_type == ‘1/1 Blog Grid List’){

    $list_size = $blog_div_size_num_class[‘1/1 Blog List’][$sidebar_type];
    print_blog_grid_list($item_class, $item_size, $list_size, $num_excerpt, $full_content, $item_type);
    }else if( $item_type == ‘1/1 Medium Thumbnail’ ){
    print_blog_medium($item_class, $item_size, $num_excerpt, $full_content);
    }
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    if( $pagination == “Yes” ){
    pagination();
    }

    wp_reset_query();
    }

    // print the blog thumbnail
    function print_blog_thumbnail( $post_id, $item_size, $enable_comment = false ){
    if( empty($item_size) ){ return ”; }

    $thumbnail_types = get_post_meta( $post_id, ‘post-option-thumbnail-types’, true);
    if( $thumbnail_types == “Image” || empty($thumbnail_types) ){
    $thumbnail_id = get_post_thumbnail_id( $post_id );
    $thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size );
    $alt_text = get_post_meta($thumbnail_id , ‘_wp_attachment_image_alt’, true);
    if( !empty($thumbnail) ){
    echo ‘<div class=”blog-media-wrapper gdl-image”>’;
    echo ‘<img src=”‘ . $thumbnail[0] .'” alt=”‘. $alt_text .'”/>‘;

    if( $enable_comment ){
    echo ‘<div class=”blog-comment”><i class=”icon-comments”></i>’;
    comments_popup_link( __(‘0′,’gdl_front_end’),
    __(‘1′,’gdl_front_end’),
    __(‘%’,’gdl_front_end’), ”,
    __(‘off’,’gdl_front_end’) );
    echo ‘</div>’;
    }

    echo ‘</div>’; // blog-media-wrapper
    }
    }else if( $thumbnail_types == “Video” ){
    $video_link = get_post_meta( $post_id, ‘post-option-thumbnail-video’, true);
    echo ‘<div class=”blog-media-wrapper gdl-video”>’;
    echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
    echo ‘</div>’; // blog-media-wrapper
    }else if ( $thumbnail_types == “Slider” ){
    $slider_xml = get_post_meta( $post_id, ‘post-option-thumbnail-xml’, true);
    $slider_xml_dom = new DOMDocument();
    $slider_xml_dom->loadXML($slider_xml);
    echo ‘<div class=”blog-media-wrapper gdl-slider”>’;
    echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
    echo ‘</div>’; // blog-media-wrapper
    }else if ( $thumbnail_types == “HTML5 Video” ){
    $video = get_post_meta( $post_id, ‘post-option-thumbnail-html5-video’, true);
    echo ‘<div class=”blog-media-wrapper gdl-html5-video”>’;
    get_html5_video($video);
    echo ‘</div>’; // blog-media-wrapper
    }
    }

    // print the blog thumbnail
    function print_single_blog_thumbnail( $post_id, $item_size ){
    $thumbnail_types = get_post_meta( $post_id, ‘post-option-inside-thumbnail-types’, true);
    if( $thumbnail_types == “Image” || empty($thumbnail_types) ){
    $thumbnail_id = get_post_meta( $post_id, ‘post-option-inside-thumbnial-image’, true);
    $thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size );
    $thumbnail_full = wp_get_attachment_image_src( $thumbnail_id , ‘full’ );
    $alt_text = get_post_meta($thumbnail_id , ‘_wp_attachment_image_alt’, true);
    if( !empty($thumbnail) ){
    echo ‘<div class=”blog-media-wrapper gdl-image”>’;
    echo ‘‘;
    echo ‘<img src=”‘ . $thumbnail[0] .'” alt=”‘. $alt_text .'”/>’;
    echo ‘
    ‘;
    echo ‘</div>’; // blog-media-wrapper
    }

    }else if( $thumbnail_types == “Video” ){
    $video_link = get_post_meta( $post_id, ‘post-option-inside-thumbnail-video’, true);
    echo ‘<div class=”blog-media-wrapper gdl-video”>’;
    echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
    echo ‘</div>’; // blog-media-wrapper
    }else if ( $thumbnail_types == “Slider” ){
    $slider_xml = get_post_meta( $post_id, ‘post-option-inside-thumbnail-xml’, true);
    $slider_xml_dom = new DOMDocument();
    $slider_xml_dom->loadXML($slider_xml);
    echo ‘<div class=”blog-media-wrapper gdl-slider”>’;
    echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
    echo ‘</div>’; // blog-media-wrapper
    }else if ( $thumbnail_types == “HTML5 Video” ){
    $video = get_post_meta( $post_id, ‘post-option-inside-thumbnail-html5-video’, true);
    echo ‘<div class=”blog-media-wrapper gdl-html5-video”>’;
    get_html5_video($video);
    echo ‘</div>’; // blog-media-wrapper
    }
    }

    // print blog widget type
    function print_blog_grid( $item_class, $item_size, $num_excerpt, $full_content, $blog_size ){
    global $more, $gdl_date_format, $gdl_admin_translator;

    if( $gdl_admin_translator == ‘enable’ ){
    $translator_continue_reading = get_option(THEME_SHORT_NAME.’_translator_continue_reading’, ‘Continue Reading’);
    }else{
    $translator_continue_reading = __(‘Continue Reading ‘,’gdl_front_end’);
    }

    if( $full_content == ‘Yes’ ){ $more = 0; }

    $blog_row_size = 0;
    $blog_size = str_replace(‘ Blog Grid’, ”, $blog_size);

    while( have_posts() ){
    the_post();

    $blog_row_size = print_item_size($blog_size, $blog_row_size, $item_class . ”);

    // blog content
    echo ‘<div class=”blog-content-wrapper”>’;

    // blog thumbnail
    print_blog_thumbnail( get_the_ID(), $item_size, true );

    echo ‘<h2 class=”blog-title”>‘ . get_the_title() . ‘</h2>’;

    echo ‘<div class=”blog-content”>’;
    if( $full_content == “No” ){
    echo gdl_get_excerpt( $num_excerpt, ‘… ‘ );
    }else{
    the_content($translator_continue_reading);
    }

    // blog information
    echo ‘<div class=”blog-info-wrapper”>’;
    echo ‘<div class=”blog-date”>’;
    echo ‘<span class=”head”>’ . __(‘Posted On’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo ‘‘;
    echo get_the_time($gdl_date_format);
    echo ‘
    ‘;
    echo ‘</div>’;

    echo ‘<div class=”blog-author”>’;
    echo ‘<span class=”separator”>, </span>’;
    echo ‘<span class=”head”>’ . __(‘By’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo the_author_posts_link();
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog information

    echo ‘</div>’; // blog content
    echo ‘</div>’; // blog content wrapper

    echo ‘</div>’; // item_class
    }
    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // close row
    }

    // print blog list
    function print_blog_list( $item_class, $item_size ){
    global $gdl_date_format, $gdl_admin_translator;

    while( have_posts() ){
    the_post();

    // blog content
    echo ‘<div class=”‘ . $item_class . ‘”>’;

    // blog thumbnail
    print_blog_thumbnail( get_the_ID(), $item_size );

    echo ‘<div class=”blog-content-wrapper”>’;
    echo ‘<h2 class=”blog-title”>‘ . get_the_title() . ‘</h2>’;

    // blog information
    echo ‘<div class=”blog-info-wrapper”>’;
    echo ‘<div class=”blog-date”>’;
    echo ‘<span class=”head”>’ . __(‘Posted On’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo ‘‘;
    echo get_the_time($gdl_date_format);
    echo ‘
    ‘;
    echo'</div>’;

    echo ‘<div class=”blog-author”>’;
    echo ‘<span class=”separator”>, </span>’;
    echo ‘<span class=”head”>’ . __(‘By’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo the_author_posts_link();
    echo ‘</div>’;

    echo ‘<div class=”blog-comment”><i class=”icon-comments”></i>’;
    comments_popup_link( __(‘0′,’gdl_front_end’),
    __(‘1′,’gdl_front_end’),
    __(‘%’,’gdl_front_end’), ”,
    __(‘Off’,’gdl_front_end’) );
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog info wrapper

    echo ‘</div>’; // blog content wrapper

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // item class
    }

    }

    // print blog widget type
    function print_blog_grid_list( $item_class, $item_size, $list_size, $num_excerpt, $full_content, $blog_size ){
    global $more, $gdl_date_format, $gdl_admin_translator;
    $gdl_num_post = 0;

    if( $gdl_admin_translator == ‘enable’ ){
    $translator_continue_reading = get_option(THEME_SHORT_NAME.’_translator_continue_reading’, ‘Continue Reading’);
    }else{
    $translator_continue_reading = __(‘Continue Reading ‘,’gdl_front_end’);
    }

    if( $full_content == ‘Yes’ ){ $more = 0; }

    $blog_row_size = 0;
    $blog_size = str_replace(‘ Blog Grid List’, ”, $blog_size);

    // $item_class

    while( have_posts() ){
    the_post(); $gdl_num_post++;

    if( $gdl_num_post <= 1 ){
    echo ‘<div class=”gdl-blog-grid” >’;

    // blog content
    echo ‘<div class=”blog-content-wrapper”>’;

    // blog thumbnail
    print_blog_thumbnail( get_the_ID(), $item_size, true );

    echo ‘<h2 class=”blog-title”>‘ . get_the_title() . ‘</h2>’;

    echo ‘<div class=”blog-content”>’;
    if( $full_content == “No” ){
    echo gdl_get_excerpt( $num_excerpt, ‘… ‘ );
    }else{
    the_content($translator_continue_reading);
    }

    // blog information
    echo ‘<div class=”blog-info-wrapper”>’;
    echo ‘<div class=”blog-date”>’;
    echo ‘<span class=”head”>’ . __(‘Posted On’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo ‘‘;
    echo get_the_time($gdl_date_format);
    echo ‘
    ‘;
    echo ‘</div>’;

    echo ‘<div class=”blog-author”>’;
    echo ‘<span class=”separator”>, </span>’;
    echo ‘<span class=”head”>’ . __(‘By’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo the_author_posts_link();
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog information

    echo ‘</div>’; // blog content
    echo ‘</div>’; // blog content wrapper

    echo ‘</div>’; // gdl blog grid
    }else{

    // blog content
    echo ‘<div class=”‘ . $item_class . ‘”>’;

    // blog thumbnail
    print_blog_thumbnail( get_the_ID(), $list_size );

    echo ‘<div class=”blog-content-wrapper”>’;
    echo ‘<h2 class=”blog-title”>‘ . get_the_title() . ‘</h2>’;

    // blog information
    echo ‘<div class=”blog-info-wrapper”>’;
    echo ‘<div class=”blog-date”>’;
    echo ‘<span class=”head”>’ . __(‘Posted On’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo ‘‘;
    echo get_the_time($gdl_date_format);
    echo ‘
    ‘;
    echo'</div>’;

    echo ‘<div class=”blog-author”>’;
    echo ‘<span class=”separator”>, </span>’;
    echo ‘<span class=”head”>’ . __(‘By’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo the_author_posts_link();
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog info wrapper

    echo ‘</div>’; // blog content wrapper

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // item class
    }
    }
    }

    // print blog medium thumbnail type
    function print_blog_medium( $item_class, $item_size, $num_excerpt, $full_content ){
    global $gdl_admin_translator, $more, $gdl_date_format;

    if( $full_content == ‘Yes’ ){ $more = 0; }

    if( $gdl_admin_translator == ‘enable’ ){
    $translator_continue_reading = get_option(THEME_SHORT_NAME.’_translator_continue_reading’, ‘Continue Reading’);
    }else{
    $translator_continue_reading = __(‘Continue Reading ‘,’gdl_front_end’);
    }

    while( have_posts() ){
    the_post();

    echo ‘<div class=”‘ . $item_class . ‘”>’;

    echo ‘<div class=”blog-content-wrapper”>’;

    // blog thumbnail
    echo ‘<div class=”blog-medium-media-wrapper”>’;
    print_blog_thumbnail( get_the_ID(), $item_size, true );
    echo ‘</div>’; // blog-medium-media-wrapper

    echo ‘<div class=”blog-context-wrapper”>’;

    // blog title
    echo ‘<h2 class=”blog-title”>‘ . get_the_title() . ‘</h2>’;

    // blog content
    echo ‘<div class=”blog-content”>’;
    if( $full_content == “No” ){
    echo gdl_get_excerpt( $num_excerpt, ‘… ‘ );
    }else{
    the_content($translator_continue_reading);
    }
    echo ‘</div>’;

    // blog information
    echo ‘<div class=”blog-info-wrapper”>’;
    echo ‘<div class=”blog-date”>’;
    echo ‘<span class=”head”>’ . __(‘Posted On’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo ‘‘;
    echo get_the_time($gdl_date_format);
    echo ‘
    ‘;
    echo ‘</div>’;

    echo ‘<div class=”blog-author”>’;
    echo ‘<span class=”separator”>, </span>’;
    echo ‘<span class=”head”>’ . __(‘By’ , ‘gdl_front_end’) . ‘</span> ‘;
    echo the_author_posts_link();
    echo ‘</div>’;

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog information

    echo ‘</div>’; // blog-context-wrapper

    echo ‘<div class=”clear”></div>’;
    echo ‘</div>’; // blog-content-wrapper

    echo ‘</div>’; // blog-item

    }

    }
    ?>

    Please how to edit?

    // print the blog thumbnail
    function print_blog_thumbnail( $post_id, $item_size, $enable_comment = false ){
    if( empty($item_size) ){ return ”; }

    $thumbnail_types = get_post_meta( $post_id, ‘post-option-thumbnail-types’, true);
    if( $thumbnail_types == “Image” || empty($thumbnail_types) ){
    $thumbnail_id = get_post_thumbnail_id( $post_id );
    $thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size );
    $alt_text = get_post_meta($thumbnail_id , ‘_wp_attachment_image_alt’, true);
    if( !empty($thumbnail) ){
    echo ‘<div class=”blog-media-wrapper gdl-image”>’;
    echo ‘<img src=”‘ . $thumbnail[0] .'” alt=”‘. $alt_text .'”/>‘;

    newzdotit

    (@newzdotit)

    I still have no post content for fbia, For me never resolved it

    Thread Starter newzdotit

    (@newzdotit)

    General Errori: Empty Instant Article: The Instant Article does not have any content.

    Thread Starter newzdotit

    (@newzdotit)

    Still stucked with this “New Post”

    Thread Starter newzdotit

    (@newzdotit)

    so? nothin’ to do to get rid of it?

    Thread Starter newzdotit

    (@newzdotit)

    I’m using your plugin wp to twitter

    Thread Starter newzdotit

    (@newzdotit)

    Hello, I’ve just updated to new version, but still New Post – %TITLE% in linkedin option
    can you tell me please how to get rid of “New Post -” ?

    Thanks

    sorry for pressed twice post

    Hi all, I have the same problem. Fbia not showing article content, and same php warning
    about DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in Mypath/wp-content/plugins/pagefrog/admin/class-pagefrog-instant-articles-parser.php on line 977

    thanks for your help

    The same to me

Viewing 15 replies - 1 through 15 (of 19 total)