- NewspaperInfinite Loading for Single Posts
- NewspapertagDiv Composer – Website Manager
- NewspaperFilters and sorting for taxonomies
- NewspaperFlex Block Settings Guide
- NewspaperHeader Builder
- NewspaperUnique Articles
- NewspaperBlock settings tutorial
Hi,
You use a standard template, to have infinite loading, you need to use a Single Post Template.
Thank you!
hello support
how to i need help infinite loading in post to Prebuilt Websites RECIPES
not working
chek web https://gastronomiabolivia.com/sopa-de-mani/
I’ve had a hard time documenting this issue and I hope you can (and should) help me fix it.
It all starts from the new update from version 12.4 to 12.5 in Newspaper.
The problem appears in the “Flex Block” module when using “Pagination” (whatever the selection) and trying to filter by “Post Type:” with the “Category filter:” option with the “Single – Related from taxonomy” option ” and a specific taxonomy to be displayed within the content type is added in the “Single – Related from taxonomies:” box.
First I leave you the video so you can see how it works correctly in version 12.4 and it was running correctly before the update to 12.5. Let’s go there! (please note the time and day below to see that it is only the update that matters). We will do everything on the same post so that there are no doubts https://www.trebol-apuestas.com/tragaperras/ancient-script/
Watch video — https://www.loom.com/share/88f2105a9de84a94a26f73fb53d06b27?sid=1ecaa2b1-df53-46eb-b8c6-5cb36729a8ec
Not all right! Games that are organized by CPT UI and that in turn penetrates ACF with the personal field “study”.
Now we are going to version 12.5 and for this we will see how it works first and then I will show it in depth with another video. (Remember we’re only 5 minutes after the previous video and having installed 12.5, all with the TAG DIV compositor the same!)
Watch video — https://www.loom.com/share/4a4c4cb1cf8349f28f8db52785b050aa?sid=bbbd3b21-b633-4668-a5d8-64b1b8b9eded
See, it already does what it wants, and it doesn’t filter by CPT UI with ACF once the scroll button is clicked as before.
Now, so that there is no doubt that it is not working, I am going to demonstrate it with the composer creating the 3 modules in this version 12.5 so that it can be seen that it REALLY UNDERSTANDS what it has to show but that it does not know how to do it when it is displayed, click next, show more and infinite load. As you will see in the video there are 16 games (slots) related to that CPT UI and ACF in this particular post, because when any type of pagination is added it stops working in version 12.5 (because I remember, in version 12.4 if it worked).
Let’s go there!
Watch video — https://www.loom.com/share/2d6a6469dc79491abde57d70f72b0c66?sid=5762832b-a76d-496d-ba4b-e89a1f756118
Let me know your solution!
Remember you can see everything in the post https://www.trebol-apuestas.com/tragaperras/ancient-script/ so that it does not affect SEO I have to put the other slots with only one module so you can review the problem in that entry.
I am getting an error which is infinite loading whenever I want to update page or post. There is some issue with AMP which is related to The error message indicates a PHP Notice related to the incorrect usage of the amp_has_paired_endpoint function in WordPress. The notice mentions that the function was called incorrectly while the AMP (Accelerated Mobile Pages) feature is disabled via the amp_is_enabled filter. The notice also indicates that the service ID “paired_routing” is not recognized and cannot be retrieved, which could be causing the issue. To resolve this error, you may need to review the code where the amp_has_paired_endpoint function is being called and make sure it is used correctly. Additionally, check if the AMP feature is properly enabled or disabled based on your requirements. If you are unsure about how to debug and fix the issue, you can refer to the provided link “Debugging in WordPress” for more information on troubleshooting PHP notices in WordPress.
Hello,
Now seems to work -> https://i.imgur.com/48fTxHC.png depende what sort option you have set here https://www.screencast.com/t/4RnV1CnxiuA -> https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
When using a cache plugin in WordPress (aka W3-TotalCache or other), it will disable the cache for authenticated users and build the page for all known users.
But when using ClouFlare, when page is in cache, admin users get same page as everybody.
So navigating on the frontend of the site admins have time to time the wordpress admin-bar (cf cache miss) and no admin-bar (cf cache HIT)
So when admins do have the admin bar the infinite scroll works as expected, but on pages without the admin-bar (cf cache HIT) the Ajax request reaches the server and bounces status 403.
Bellow you’ll find the request in curl
If I run that request without the line “-H ‘cookie’ … ” it works just fine.
So I believe the payload / ‘–data-raw’ section holds something about the authenticated user that has to match the cookie, and that when it finds the cookie and not the relevant data in the payload, the request gets rejected.
(I’ve tested all I could. Things like disabling any security plugins like Wordfence etc..)
curl 'https://www.welovetennis.fr/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=12.3.1' \
-H 'authority: www.welovetennis.fr' \
-H 'accept: */*' \
-H 'accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6,es;q=0.5' \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'cookie: wordpress_sec_f1bdf72b037f4fc61a63ad5e89e9ef25=antony%7C1686083014%7CURpjXWj39EjnJJRGKPumlEmrKcrFlVet04mQNF1ntDn%7C4856477bbdf40dcf110a94ce8fe959667a535a667b2568634a269f62cd4dfb87; wordpress_logged_in_f1bdf72b037f4fxxxxxxxxxx25=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf6fb09ef8ae5; wp-settings-1=editor%3Dhtml%26libraryContent%3Dbrowse%26advImgDetails%3Dshow%26posts_list_mode%3Dlist%26imgsize%3Dfull%26mfold%3Do; wp-settings-time-1=1684873423; fonce_current_user=1; _ga_1Z908S1EE2=GS1.1.1685172078.1.0.1685172078.0.0.0; _pbjs_userid_consent_data=1688550979652389; _gid=GA1.2.1338529052.1685759630; hidecta=no; _ga_98EFBCYPM8=GS1.1.1685759629.9.1.1685759860.0.0.0; cto_bundle=8djCU19DMGVlRWxiSUdyMVQ2M0hDa3BwQ05BYmNHQnFIcEFHTFU3VzhlWkdQbDlndVNmb3FKb0JOT1ZGUkhzciUyQlQ5MHBnb1dRNGIyTFdEMTBFd0lCM25tclZaNUFJZXRuY3FSSktJdkJLNzFvSSUyRlJqZyUyRkRYbVhPckhISlZ3aUNOaVNvMnJCZHBOdVZGR0FsSlFwJTJGU1pYek0lMkZnJTNEJTNE; cto_bidid=_sEKgV82RWp4YkNYZWFVejBnTXNHVG0yOUgxcHRhSXZEa0lwdEFEalJTdU93ZDglMkZQYVFkOGhTWHRRbjdvdDJRRk5SZSUyRlV0dmpSOVpXTDZYM0dySmhwUHdmbmNWNHpkYmpuV211OXJpYVlYYmtVWGNkaGJtQk5KNklueHNaN3hxTWhNMjU; _ga=GA1.2.1020367004.1684952847; _gat=1' \
-H 'dnt: 1' \
-H 'origin: https://www.welovetennis.fr' \
-H 'referer: https://www.welovetennis.fr/' \
-H 'sec-ch-ua: "Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36' \
-H 'x-requested-with: XMLHttpRequest' \
--data-raw 'action=td_ajax_block&td_atts=%7B%22art_title_pos%22%3A%22bottom%22%2C%22info_pos%22%3A%22bottom%22%2C%22art_excerpt_pos%22%3A%22bottom%22%2C%22art_audio_pos%22%3A%22bottom%22%2C%22modules_category%22%3A%22image%22%2C%22btn_pos%22%3A%22bottom%22%2C%22modules_on_row%22%3A%22eyJhbGwiOiI1MCUiLCJwaG9uZSI6IjEwMCUiLCJwb3J0cmFpdCI6IjEwMCUifQ%3D%3D%22%2C%22category_ids%22%3A%22346%22%2C%22limit%22%3A%224%22%2C%22ajax_pagination%22%3A%22infinite%22%2C%22sort%22%3A%22%22%2C%22offset%22%3A%223%22%2C%22ajax_pagination_infinite_stop%22%3A%223%22%2C%22tdc_css%22%3A%22eyJwaG9uZSI6eyJkaXNwbGF5IjoiIn0sInBob25lX21heF93aWR0aCI6NzY3fQ%3D%3D%22%2C%22show_btn%22%3A%22%22%2C%22td_ajax_preloading%22%3A%22%22%2C%22show_review%22%3A%22none%22%2C%22show_com%22%3A%22none%22%2C%22time_ago_add_txt%22%3A%22%22%2C%22block_type%22%3A%22td_flex_block_5%22%2C%22separator%22%3A%22%22%2C%22custom_title%22%3A%22%22%2C%22custom_url%22%3A%22%22%2C%22block_template_id%22%3A%22%22%2C%22title_tag%22%3A%22%22%2C%22mc5_tl%22%3A%22%22%2C%22mc5_title_tag%22%3A%22%22%2C%22mc5_el%22%3A%22%22%2C%22post_ids%22%3A%22%22%2C%22category_id%22%3A%22%22%2C%22taxonomies%22%3A%22%22%2C%22in_all_terms%22%3A%22%22%2C%22tag_slug%22%3A%22%22%2C%22autors_id%22%3A%22%22%2C%22installed_post_types%22%3A%22%22%2C%22open_in_new_window%22%3A%22%22%2C%22show_modified_date%22%3A%22%22%2C%22time_ago%22%3A%22%22%2C%22time_ago_txt_pos%22%3A%22%22%2C%22el_class%22%3A%22%22%2C%22td_query_cache%22%3A%22%22%2C%22td_query_cache_expiration%22%3A%22%22%2C%22td_ajax_filter_type%22%3A%22%22%2C%22td_ajax_filter_ids%22%3A%22%22%2C%22td_filter_default_txt%22%3A%22All%22%2C%22modules_gap%22%3A%22%22%2C%22m_padding%22%3A%22%22%2C%22all_modules_space%22%3A%2236%22%2C%22modules_border_size%22%3A%22%22%2C%22modules_border_style%22%3A%22%22%2C%22modules_border_color%22%3A%22%23eaeaea%22%2C%22modules_divider%22%3A%22%22%2C%22divider_on%22%3A%22%22%2C%22modules_divider_color%22%3A%22%23eaeaea%22%2C%22h_effect%22%3A%22%22%2C%22image_size%22%3A%22%22%2C%22image_alignment%22%3A%2250%22%2C%22image_height%22%3A%22%22%2C%22image_radius%22%3A%22%22%2C%22image_margin%22%3A%22%22%2C%22hide_image%22%3A%22%22%2C%22video_icon%22%3A%22%22%2C%22video_popup%22%3A%22yes%22%2C%22video_rec%22%3A%22%22%2C%22spot_header%22%3A%22%22%2C%22video_rec_title%22%3A%22%22%2C%22video_rec_color%22%3A%22%22%2C%22video_rec_disable%22%3A%22%22%2C%22autoplay_vid%22%3A%22yes%22%2C%22show_vid_t%22%3A%22block%22%2C%22vid_t_margin%22%3A%22%22%2C%22vid_t_padding%22%3A%22%22%2C%22video_title_color%22%3A%22%22%2C%22video_title_color_h%22%3A%22%22%2C%22video_bg%22%3A%22%22%2C%22video_overlay%22%3A%22%22%2C%22vid_t_color%22%3A%22%22%2C%22vid_t_bg_color%22%3A%22%22%2C%22f_vid_title_font_header%22%3A%22%22%2C%22f_vid_title_font_title%22%3A%22Video+pop-up+article+title%22%2C%22f_vid_title_font_settings%22%3A%22%22%2C%22f_vid_title_font_family%22%3A%22%22%2C%22f_vid_title_font_size%22%3A%22%22%2C%22f_vid_title_font_line_height%22%3A%22%22%2C%22f_vid_title_font_style%22%3A%22%22%2C%22f_vid_title_font_weight%22%3A%22%22%2C%22f_vid_title_font_transform%22%3A%22%22%2C%22f_vid_title_font_spacing%22%3A%22%22%2C%22f_vid_title_%22%3A%22%22%2C%22f_vid_time_font_title%22%3A%22Video+duration+text%22%2C%22f_vid_time_font_settings%22%3A%22%22%2C%22f_vid_time_font_family%22%3A%22%22%2C%22f_vid_time_font_size%22%3A%22%22%2C%22f_vid_time_font_line_height%22%3A%22%22%2C%22f_vid_time_font_style%22%3A%22%22%2C%22f_vid_time_font_weight%22%3A%22%22%2C%22f_vid_time_font_transform%22%3A%22%22%2C%22f_vid_time_font_spacing%22%3A%22%22%2C%22f_vid_time_%22%3A%22%22%2C%22meta_info_horiz%22%3A%22content-horiz-left%22%2C%22meta_width%22%3A%22%22%2C%22meta_margin%22%3A%22%22%2C%22meta_margin2%22%3A%22%22%2C%22meta_padding%22%3A%22%22%2C%22meta_padding2%22%3A%22%22%2C%22meta_info_border_size%22%3A%22%22%2C%22meta_info_border_size2%22%3A%22%22%2C%22meta_info_border_style%22%3A%22%22%2C%22meta_info_border_color%22%3A%22%23eaeaea%22%2C%22meta_info_border_radius%22%3A%22%22%2C%22meta_info_border_radius2%22%3A%22%22%2C%22info_space%22%3A%22%22%2C%22art_title%22%3A%22%22%2C%22show_excerpt%22%3A%22block%22%2C%22art_excerpt%22%3A%22%22%2C%22excerpt_inline%22%3A%22%22%2C%22meta_space%22%3A%22%22%2C%22show_audio%22%3A%22block%22%2C%22hide_audio%22%3A%22%22%2C%22art_audio%22%3A%22%22%2C%22art_audio_size%22%3A%221.5%22%2C%22show_cat%22%3A%22inline-block%22%2C%22modules_category_margin%22%3A%22%22%2C%22modules_category_padding%22%3A%22%22%2C%22modules_category_border%22%3A%22%22%2C%22modules_category_radius%22%3A%220%22%2C%22modules_extra_cat%22%3A%22%22%2C%22show_author%22%3A%22inline-block%22%2C%22author_photo%22%3A%22%22%2C%22author_photo_size%22%3A%22%22%2C%22author_photo_space%22%3A%22%22%2C%22author_photo_radius%22%3A%22%22%2C%22show_date%22%3A%22inline-block%22%2C%22review_space%22%3A%22%22%2C%22review_size%22%3A%222.5%22%2C%22review_distance%22%3A%22%22%2C%22btn_title%22%3A%22%22%2C%22btn_margin%22%3A%22%22%2C%22btn_padding%22%3A%22%22%2C%22btn_border_width%22%3A%22%22%2C%22btn_radius%22%3A%22%22%2C%22pag_space%22%3A%22%22%2C%22pag_padding%22%3A%22%22%2C%22pag_border_width%22%3A%22%22%2C%22pag_border_radius%22%3A%22%22%2C%22prev_tdicon%22%3A%22%22%2C%22next_tdicon%22%3A%22%22%2C%22pag_icons_size%22%3A%22%22%2C%22f_header_font_header%22%3A%22%22%2C%22f_header_font_title%22%3A%22Block+header%22%2C%22f_header_font_settings%22%3A%22%22%2C%22f_header_font_family%22%3A%22%22%2C%22f_header_font_size%22%3A%22%22%2C%22f_header_font_line_height%22%3A%22%22%2C%22f_header_font_style%22%3A%22%22%2C%22f_header_font_weight%22%3A%22%22%2C%22f_header_font_transform%22%3A%22%22%2C%22f_header_font_spacing%22%3A%22%22%2C%22f_header_%22%3A%22%22%2C%22f_ajax_font_title%22%3A%22Ajax+categories%22%2C%22f_ajax_font_settings%22%3A%22%22%2C%22f_ajax_font_family%22%3A%22%22%2C%22f_ajax_font_size%22%3A%22%22%2C%22f_ajax_font_line_height%22%3A%22%22%2C%22f_ajax_font_style%22%3A%22%22%2C%22f_ajax_font_weight%22%3A%22%22%2C%22f_ajax_font_transform%22%3A%22%22%2C%22f_ajax_font_spacing%22%3A%22%22%2C%22f_ajax_%22%3A%22%22%2C%22f_more_font_title%22%3A%22Load+more+button%22%2C%22f_more_font_settings%22%3A%22%22%2C%22f_more_font_family%22%3A%22%22%2C%22f_more_font_size%22%3A%22%22%2C%22f_more_font_line_height%22%3A%22%22%2C%22f_more_font_style%22%3A%22%22%2C%22f_more_font_weight%22%3A%22%22%2C%22f_more_font_transform%22%3A%22%22%2C%22f_more_font_spacing%22%3A%22%22%2C%22f_more_%22%3A%22%22%2C%22f_title_font_header%22%3A%22%22%2C%22f_title_font_title%22%3A%22Article+title%22%2C%22f_title_font_settings%22%3A%22%22%2C%22f_title_font_family%22%3A%22%22%2C%22f_title_font_size%22%3A%22%22%2C%22f_title_font_line_height%22%3A%22%22%2C%22f_title_font_style%22%3A%22%22%2C%22f_title_font_weight%22%3A%22%22%2C%22f_title_font_transform%22%3A%22%22%2C%22f_title_font_spacing%22%3A%22%22%2C%22f_title_%22%3A%22%22%2C%22f_cat_font_title%22%3A%22Article+category+tag%22%2C%22f_cat_font_settings%22%3A%22%22%2C%22f_cat_font_family%22%3A%22%22%2C%22f_cat_font_size%22%3A%22%22%2C%22f_cat_font_line_height%22%3A%22%22%2C%22f_cat_font_style%22%3A%22%22%2C%22f_cat_font_weight%22%3A%22%22%2C%22f_cat_font_transform%22%3A%22%22%2C%22f_cat_font_spacing%22%3A%22%22%2C%22f_cat_%22%3A%22%22%2C%22f_meta_font_title%22%3A%22Article+meta+info%22%2C%22f_meta_font_settings%22%3A%22%22%2C%22f_meta_font_family%22%3A%22%22%2C%22f_meta_font_size%22%3A%22%22%2C%22f_meta_font_line_height%22%3A%22%22%2C%22f_meta_font_style%22%3A%22%22%2C%22f_meta_font_weight%22%3A%22%22%2C%22f_meta_font_transform%22%3A%22%22%2C%22f_meta_font_spacing%22%3A%22%22%2C%22f_meta_%22%3A%22%22%2C%22f_ex_font_title%22%3A%22Article+excerpt%22%2C%22f_ex_font_settings%22%3A%22%22%2C%22f_ex_font_family%22%3A%22%22%2C%22f_ex_font_size%22%3A%22%22%2C%22f_ex_font_line_height%22%3A%22%22%2C%22f_ex_font_style%22%3A%22%22%2C%22f_ex_font_weight%22%3A%22%22%2C%22f_ex_font_transform%22%3A%22%22%2C%22f_ex_font_spacing%22%3A%22%22%2C%22f_ex_%22%3A%22%22%2C%22f_btn_font_title%22%3A%22Article+read+more+button%22%2C%22f_btn_font_settings%22%3A%22%22%2C%22f_btn_font_family%22%3A%22%22%2C%22f_btn_font_size%22%3A%22%22%2C%22f_btn_font_line_height%22%3A%22%22%2C%22f_btn_font_style%22%3A%22%22%2C%22f_btn_font_weight%22%3A%22%22%2C%22f_btn_font_transform%22%3A%22%22%2C%22f_btn_font_spacing%22%3A%22%22%2C%22f_btn_%22%3A%22%22%2C%22mix_color%22%3A%22%22%2C%22mix_type%22%3A%22%22%2C%22fe_brightness%22%3A%221%22%2C%22fe_contrast%22%3A%221%22%2C%22fe_saturate%22%3A%221%22%2C%22mix_color_h%22%3A%22%22%2C%22mix_type_h%22%3A%22%22%2C%22fe_brightness_h%22%3A%221%22%2C%22fe_contrast_h%22%3A%221%22%2C%22fe_saturate_h%22%3A%221%22%2C%22m_bg%22%3A%22%22%2C%22shadow_shadow_header%22%3A%22%22%2C%22shadow_shadow_title%22%3A%22Module+Shadow%22%2C%22shadow_shadow_size%22%3A%22%22%2C%22shadow_shadow_offset_horizontal%22%3A%22%22%2C%22shadow_shadow_offset_vertical%22%3A%22%22%2C%22shadow_shadow_spread%22%3A%22%22%2C%22shadow_shadow_color%22%3A%22%22%2C%22meta_bg%22%3A%22%22%2C%22meta_bg2%22%3A%22%22%2C%22title_txt%22%3A%22%22%2C%22title_txt_hover%22%3A%22%22%2C%22all_underline_height%22%3A%22%22%2C%22all_underline_color%22%3A%22%23000%22%2C%22cat_bg%22%3A%22%22%2C%22cat_bg_hover%22%3A%22%22%2C%22cat_txt%22%3A%22%22%2C%22cat_txt_hover%22%3A%22%22%2C%22cat_border%22%3A%22%22%2C%22cat_border_hover%22%3A%22%22%2C%22author_txt%22%3A%22%22%2C%22author_txt_hover%22%3A%22%22%2C%22date_txt%22%3A%22%22%2C%22ex_txt%22%3A%22%22%2C%22com_bg%22%3A%22%22%2C%22com_txt%22%3A%22%22%2C%22rev_txt%22%3A%22%22%2C%22shadow_m_shadow_header%22%3A%22%22%2C%22shadow_m_shadow_title%22%3A%22Meta+info+shadow%22%2C%22shadow_m_shadow_size%22%3A%22%22%2C%22shadow_m_shadow_offset_horizontal%22%3A%22%22%2C%22shadow_m_shadow_offset_vertical%22%3A%22%22%2C%22shadow_m_shadow_spread%22%3A%22%22%2C%22shadow_m_shadow_color%22%3A%22%22%2C%22audio_btn_color%22%3A%22%22%2C%22audio_time_color%22%3A%22%22%2C%22audio_bar_color%22%3A%22%22%2C%22audio_bar_curr_color%22%3A%22%22%2C%22btn_bg%22%3A%22%22%2C%22btn_bg_hover%22%3A%22%22%2C%22btn_txt%22%3A%22%22%2C%22btn_txt_hover%22%3A%22%22%2C%22btn_border%22%3A%22%22%2C%22btn_border_hover%22%3A%22%22%2C%22pag_text%22%3A%22%22%2C%22pag_h_text%22%3A%22%22%2C%22pag_bg%22%3A%22%22%2C%22pag_h_bg%22%3A%22%22%2C%22pag_border%22%3A%22%22%2C%22pag_h_border%22%3A%22%22%2C%22ajax_pagination_next_prev_swipe%22%3A%22%22%2C%22css%22%3A%22%22%2C%22td_column_number%22%3A1%2C%22header_color%22%3A%22%22%2C%22color_preset%22%3A%22%22%2C%22border_top%22%3A%22%22%2C%22class%22%3A%22tdi_85%22%2C%22tdc_css_class%22%3A%22tdi_85%22%2C%22tdc_css_class_style%22%3A%22tdi_85_rand_style%22%7D&td_block_id=tdi_85&td_column_number=1&td_current_page=2&block_type=td_flex_block_5&td_filter_value=&td_user_action=&td_magic_token=3380c233f7' \
--compressed
-
This reply was modified 3 years by
cantoute.
We have notices a small bug but would be nice to get it fixed.
When a page using any “infinite scroll” modules gets in cache (here on CloudFlare), when a logged in user triggers the “load more” (same thing happens with infinite scroll) the ajax request gets bounced with “forbidden”
POST https://www.mysite.com/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=12.3.1
Returns status 403
the response body is: -1
When navigating in “private mode” (so without the auth cookie) it all works fine.
It would be a nice thing to see fixed
CloudFlare isn’t an uncommon thing to use these days and using the free version it doesn’t seem possible to bypass their cache based on presence of the auth cookie.
Thank you for looking into this. It’s probably a small thing to fix.
Antony GIBBS
I am using the default post format and want to include auto load/infinite scroll in the post article in both desktop site as well as mobile+AMP site.
While it is possible to do it with a post template, i want to keep it at default as i don’t like any of those cloud library tags.
Note: I want to add infinite scroll to the blog post article
Hi,
I noticed that lazy load for featured image in modules built with module builder works different to the normal lazy-laod. This lazy-load uses a grey placeholder, whereas for the normal modules it’s just white background with an option in theme panel to use custom thumbnail placeholder image to appear before image loads. There’s no lazy-load placeholder customization option for module builder. But, that’s OK. It looks just fine.
But the problem is, If I have 10-12 articles on my homepage, some of the images do not load if I scroll too fast. I understand that a normal visitor will rarely do that, but still. If it’s a bug, it should be reported and fixed.
On homepage, I have 9 articles as default with infinite load pagination. Currently I only have 15 post in total, so the infinite load only makes a single request to load the rest of the posts (15-9-6) <9. If I scroll too fast, some of the images do not load (not just for the articles that are paginated, sometimes even for the articles that are already there (first 9), but are below the screen viewport(lazy-loaded)). Sometimes occurs for one image, sometimes 2, sometimes more. When scroll is done at normal(slow) speed, everything works normally.
Edit: Also, there’s no option to switch this lazy load off. And, does this new module builder use the built- in wordpress lazy load feature?
I understood what MAG is trying to do. I want the same. We don’t need infinite loading, we want to use the NEXT/PREV pagination as the “slide” element works, where you dont’t need to click the arrows to the next slide, they move to the next post automatically.
I want the next posts in the “Flex Block” to appear automatically.
-
This reply was modified 3 years by
sindsaudedf.
-
This reply was modified 3 years by
sindsaudedf.
Hi,
You can enable the option the Auto Loading on the Single Post Template edit with tagDiv Composer -> Show site wide settings => https://www.screencast.com/t/4RnV1CnxiuA -> https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
Hello dear team can you please tell me how to enable infinite scroll (to load new content as the user scrolls down).
Kind Regards.
Hi,
You use a standard template, to have infinite loading, you need to use a Single Post Template.
Thank you!
Hello,
Unfortunately, if you have the option infinite load activates, the sticky sidebar works only for the first post, then the sticky sidebar will not work for the rest posts.
Thank you!
Not workin to RECIPES Prebuilt Websites
other solution Infinite Loading for Single Posts ?
regard
Hi,
Do you want to use Infinite Loading for Single Posts? this can be enabled only on single post template from tagDiv Cloud Library – https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
Hello @jbrabants !
It could be an issue if the Cloud Library loads infinitely. Check this thread: https://forum.tagdiv.com/topic/cloud-templates-takes-forever-to-load/
You can create your own CPTs by using the CPT/UI plugin. Check the documentation: https://forum.tagdiv.com/introduction-cpt-acf-newspaper-theme/
https://forum.tagdiv.com/custom-post-type-support/
Thank you!
Hi,
You can disable the option the Auto Loading on the Single Post Template edit with tagDiv Composer -> Show site wide settings => https://www.screencast.com/t/4RnV1CnxiuA -> https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
Hi,
I think you referring to infinite loading.
You can disable the option the Auto Loading on the Single Post Template edit with tagDiv Composer -> Show site wide settings => https://www.screencast.com/t/4RnV1CnxiuA -> https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
Hello,
Unfortunately, if you have the option infinite load activates, the sticky sidebar works only for the first post, then the sticky sidebar will not work for the rest posts.
Thank you!
We’re using the Newspaper theme and have enabled infinite scrolling on our posts.
On the first post the right sidebar sticks in place and is visible while you scroll.
However, when you scroll to another post the sidebar appears again but no longer sticks.
We’d like the sidebar to behave the same as the first post on all the infinite loaded posts.
Are we likely to be doing something wrong? Is there an option to prevent this behaviour?
You can see an example if you scroll through a few posts here:
Thanks.
Hi Guys,
Not sure if anyone else has encountered this issue. I cannot see all my posts on my website. No more posts appear even if I set it to infinite loading or pagination.
Here is a page where more articles/posts should load: https://demcrumbliesreviews.com/miscellaneous-reviews/
This post should appear in the link above to click as a post, but it does not: https://demcrumbliesreviews.com/lg-c1-65-review/
Hi,
You can enable the option the Auto Loading on the Single Post Template edit with tagDiv Composer -> Show site wide settings => https://www.screencast.com/t/4RnV1CnxiuA -> https://forum.tagdiv.com/infinite-loading-single-posts/
Thank you!
Greetings.
Probing one of our websites, running Newspaper 12.2 with WordPress 6.1.1, we have found that there is a security vulnerability on category pages that use infinite loading.
This option:
Theme Panel > Categories > Category global settings > Pagination style > Infinite loading
When this infinite loading is active Newspaper does a POST request to wp-admin/admin-ajax.php with a loopState action to retrieve more posts, and the response is not properly escaped leading to an opening that can allow a reflected cross-site scripting attack.
Here’s an example on your own demo site:
The request:
curl 'https://demo.tagdiv.com/newspaper_pro/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=12.2' \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'x-requested-with: XMLHttpRequest' \
--data-raw 'action=td_ajax_loop&loopState%5BsidebarPosition%5D=no_sidebar&loopState%5BmoduleId%5D=17&loopState%5BcurrentPage%5D=2&loopState%5Bmax_num_pages%5D=2&loopState%5Batts%5D%5Bcategory_id%5D=1&loopState%5Batts%5D%5Boffset%5D=3&loopState%5Bajax_pagination_infinite_stop%5D=%3Cimg+src%3DBOGUS%3E&loopState%5Bserver_reply_html_data%5D='
The (truncated) response:
HTTP/1.1 200 OK
...
Content-Type: text/html; charset=UTF-8
...
{
"sidebarPosition":"no_sidebar",
"moduleId":"17",
"currentPage":"2",
"max_num_pages":"2",
"atts": {
"category_id":"1",
"offset":"3"
},
"ajax_pagination_infinite_stop":"",
"server_reply_html_data":""
}
Notice how parameters sent for the loopState action via ajax are reflected back to the client unescaped. In this example, the parameter ajax_pagination_infinite_stop was altered to include a bogus image tag instead of a number. Because HTML tags are not being properly escaped when the response JSON is encoded, and combined with the fact that the Content-Type of the response is text/html, this results in the malformed request being reflected towards the client and rendered as HTML, which can be abused by a malicious actor.
A possible solution:
On your td-composer plugin, the function on_ajax_loop of the class td_ajax deals with loopState requests. Currently it returns with the following statement:
die(json_encode($loopState));
Supplying the flag JSON_HEX_TAG to encode the symbols for opening and closing HTML tags seems to mitigate the issue:
die(json_encode($loopState, JSON_HEX_TAG));
Best regards.
Hi, Infinite Loading for Single Posts is not working properly on my site. Months old articles are being uploaded instead of the previous article. Yet in the settings I selected “previous article”.
The site is http://www.tennisfever.it.
Many thanks for the help.