Onscroll load more posts function skips a post in wordpress. - ajax

I used Load More Posts on Scroll in WordPress theme and it was working fine until I failed to notice that it skips a post on loading next set of posts. When the no of posts in reading option is increased it skips the other.. Linke, if n is no of posts and n+1, is skipped and from n+2 is loaded on the scroll. So how can I fix this or can we use a variable or something in which we can manually specify no of posts to load0?

Related

Livewire load view dynamicly after every list entry in the backend

I have built a website checker in Laravel, this checks a page for google fonts, ssl certificate etc., thereby all subpages on the main domain are checked whether they use google fonts, this can take quite a long time for large sites but a list that also uses the blade view is already filled and could thus show the first pages or subpages already and give a status about it. I tried it now so that after each iteration in the foreach once the render() method is executed, because I thought that so possibly the data can already be displayed, but unfortunately does not work.
Save the list into the DB. Use Livewire poll and check each record for completion.

How to add infinite scrolling to classic view blogger

Question: I'm trying to get all my posts in one scroll. It was working until recently by increasing "Max posts shown on main page" in Posts under settings to over 100. However, it is now cutting off at around 25, despite updating the max posts. Ive tried adding the various html codes to the edit html, but nothing works. Is there a pushbutton way to do this? Or at least include an "older posts" at the bottom? Classic view seems very limited, and at present, it will not even display a link to access my oldests posts. Thanks in advance, Chris

How to do page numbering in footer htmls with wkhtmltopdf?

i m using snappypdf and i managed to add an html footer to my file with this code in my Laravel controller:
->setOption('footer-html', view('front.mail_templates.layouts.emailFooter'))->setOption('margin-bottom',17)
but now i want to add page numbering to it, and after looking i found this solution:
->setOption('footer-right', "Page [page] of [toPage]")
The problem is i want these two to appear in my pdf but i can't make them work together they work separately but if together only html footer show and page numbering is invisible , I hovered over an empty space by chance and after copying and pasting it elsewhere, i found out it was the page number printed transparently. so is it possible to make them apear both in my footer? or any other suggestions?
EDIT
here is my footer html code :
every thing worked fine untill i added the javascript code, now it generates the following error : he exit status code '-1073741819' says something went wrong

How to load a specific number of records per page and add an more button

On my page I would like to output all records of a specific folder
but the number should initially be limited to a certain quantity (to reduce the loading times). With a "Load more" button further records should be loaded.
Does anyone have a hint on how I can achieve this?
I have already found several approaches on the web in connection with AJAX, but since I'm not familiar with this yet, more questions than answers have emerged ...
For info: I use an own Template Extension / Distribution under Typo3 9.5.8
Thank you in advance for any help!!
The state of the art solution is the AJAX solution, where you load only the required records from the server and modify the page on the fly.
Another option would be an URL parameter which is evaluated by your extension.
With the parameter the full list is shown,
without only the first N and a button with the link to the same URL including the parameter for the full list.
Make sure the paramter is handled correctly and generates another cached version of the page. (keywords: cHash)
As you now have two pages with partially identical content: don't forget to tell the searchengines that the short variant should not be indexed.
You could use the Paginate Widget like documented here: https://docs.typo3.org/other/typo3/view-helper-reference/9.5/en-us/typo3/fluid/latest/Widget/Paginate.html
By overriding the paginate template file and only rendering the pagination.nextPage link, you could load the nextpage via AJAX.

Wordpress Filter by Tag with Ajax

I'm setting up a P2 themed (using Houston child theme) Wordpress. I want to accomplish the following but after hours and hours of searching I cannot figure out how to do this even though it seems like something that would be common.
Ideally, I would like a tag list in the sidebar with checkboxes for each tag. Only posts that match checked tags are displayed and it updates with Ajax rather than a page reload. It saves what you have checked to the user profile (page will require login).
I would settle for simply having a tag list/cloud that would update with Ajax if I could also have links that would display multiple tags. It's no problem if I have to hard code these tag-grouping links.
Basically I want users to control what posts they are interested in reading, the assumption is no one will be reading every post, just the tags that pertain to them.
The best I was able to find was this plugin:
Cat + Tag Filter
http://wordpress.org/extend/plugins/cat-tag-filter-widget/
And configuring it for checkboxes on tag. It doesn't reload with Ajax or remember what the user selected, but it does take you to a tag filtered page that you could bookmark.

Resources