[text]Parse error: syntax error, unexpected '<' in /var/www/vhosts/staging.site.co.uk/httpdocs/wp-content/themes/blade-child/functions.php on line 202
[/text]
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
I think that's something that got mangled by the forum software, and I can't seem to post it. That line should be the same as in the original paginate_comments_links function.
can you send me a screenshot of what it should be please? I guess there are double quotes in there?
I can see you have added smurf stuff for fun. Which I guess is to be replaced with 1, 2... etc.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
That's not me having a laugh, that's the forum software filtering out what it thinks is either spam or malicious code. Can't upload a screenshot for some reason, so here's a link: https://imgur.com/gFNIUpG
The pagination should presumably still appear, just the number of pages should be reduced to the correct amount. I took a fresh install of WordPress, added 400 comments, some with content, some without, and the code I listed now shows 11 pages (20 comments per page) instead of 21, which would be the norm. Does that not line up with what you're seeing? (With adjusted numbers, obviously)
In theory this page should show NO page numbers at all
There are 272 star ratings (no comment text) comments. So the Reviews themselves are empty. But shows the pagination.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
It's probably worth saying too that in the view source is has <ul class='page-numbers'> but in comments.php it doesn't have that.
And if I add "<ul class='fred'>", it doesnt render that.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis wrote:It's probably worth saying too that in the view source is has <ul class='page-numbers'> but in comments.php it doesn't have that.
That is useful. Tells us this isn't being rendered by comments.php, but some other file. See if you can track down where these comments are being generated from and we can work from there. Time for me to go to work now, so I probably won't be able to look at this again until tonight.
Looks like you've added $comments to the wrong place in the wp_list_comments call. It needs to be the second argument, so right before the last closing parenthesis. Don't forget you'll also need to swap out calls to pagination methods for the new ones.