Lucian Davidescu

less info
23 reputation
5
bio website
location
age
visits member for 1 year, 10 months
seen Feb 18 at 13:24

Apr
25
comment How to change pagination base from slash to query form?
Not necessarily, it was just a bad example, any word will do, such as "page". I was just wondering if this function could be used, with some method to remove the slash (now the result is "?page=/2)
Apr
25
comment How to change pagination base from slash to query form?
Indeed, but I'd rather have in this form only for pagination, just like with the other exception - search.
Apr
25
comment Using loop pagination on single.php
Updated it. To remove canonical redirect, you add the following to functions.php: remove_filter('template_redirect', 'redirect_canonical');
Apr
21
comment Using loop pagination on single.php
Milo, that sounds neat but I think it's at least two levels above my competence. If it were just one, i would've given it a try ;D. Also, I rely on a plugin (infinite-scroll) and I don't know if it would be compatible with that method. If there's no easier way, than I should probably give up.
Apr
21
comment Using loop pagination on single.php
OK, here they are: 1) pastebin.com/rqVD9tYd This results in numbered pagination but with the slashes that make the single.php loop useless. 2) pastebin.com/iDxRf8Y7 This results in numbered pagination but with all links pointing to current page and in some error enclosing showing: string(551) "Prev 1 2 3 [...] 67 Next". *String number varies.
Apr
21
comment Using loop pagination on single.php
Already tried the former, now tried the latter, neither does it. I must be doing something wrong, I suppose the idea is to have the pagination as query (?paged=2 instead of /page/2/) but i don't know how to get there. Is it a canonical redirect I need to overwrite?
Apr
21
comment Using loop pagination on single.php
The AJAX I use needs working pagination in order to do its job. I have query_posts because, for some reason, it falls back to reloading the first page on single.php which is better than nothing (wp_query)
Apr
19
comment Exclude current sticky post
Works like charm :D Thanks alot for the effort and patience
Dec
19
comment page 1 is not paged
That would be fine, but is there a way to load the page template with the base url and yet not redirect when on index/page 1?
Dec
19
comment page 1 is not paged
I'm not sure, I think not, because I tried the code and it doesn't do what I want. I have two different pages: one is index.php, heavily customized, cms style. the other is "page/1", which shows the latest posts in order, blog style. While I manage to load the correct template with the strpos thing, wordpress still doesn't seem to know where it is. It says both are is_home and !is_page. OTOH, conditionals that identify $paged = 1 also trigger on the homepage and do things I don't need there. What I want is to have them separated: what triggers on home doesn't trigger on page 1 and viceversa.
Dec
19
comment page 1 is not paged
I updated the question
Nov
7
comment Get only one comment per post with get_comments
A loop seems like the way to go, I'll have to explore into that.
Nov
7
comment Get only one comment per post with get_comments
Show the most recent comment, ignore the others from that post, go on to show the next most recent comment from another post, ignore the others from that post and so on.
Nov
6
comment Get only one comment per post with get_comments
Same as above, I don't want just one comment but a bunch of them, with no more than one (the most recent) from each post.
Nov
6
comment Get only one comment per post with get_comments
Not one comment, but max one from each post