44 reputation
9
bio website miller-media.com
location
age
visits member for 2 years, 1 month
seen Jun 25 at 3:31

Jun
3
revised wp_insert_post does not insert string with apostrophes correctly
added 310 characters in body
Jun
3
asked wp_insert_post does not insert string with apostrophes correctly
Apr
28
comment Pagination on Single Post
Ok so that makes sense but the issue is that the page variables aren't incrementing when the next set of posts are loading. It's starting at '1' but it just keeps repeating the same page in the pagination. Could this be because the qet_query_var('page') is always rendering as 0 (even though we are then altering it to 1)?
Apr
18
accepted Custom Search Not Consistent with Results
Apr
18
answered Custom Search Not Consistent with Results
Apr
17
comment Pagination on Single Post
Thank you! When I'm at the main URL of the post, get_query_var('page') is returning '0' when I echo it out. I would assume this should be '1'?
Apr
17
comment Pagination on Single Post
Thank you! That sheds some light on it but for some reason when I'm at the main URL of the post, get_query_var('page') is returning '0' when I echo it out. I would assume this should be '1'?
Apr
17
revised Pagination on Single Post
added 537 characters in body
Apr
17
comment Pagination on Single Post
@YeshanSachithaKPerera, yes I have. I have a successfully loop running on another page. I've added the query code above that I am using on the single.php and that is not working (it keeps returning a value of '1' for the variable $paged when I try to print it out). It will repeat the infinite scroll but continues to repeat page 1 posts over and over again and never increments.
Apr
17
revised Pagination on Single Post
added 620 characters in body
Apr
17
revised Pagination on Single Post
added 510 characters in body
Apr
17
comment Custom Search Not Consistent with Results
@G.M., I've added the complete code of that page up above. The location stuff shouldn't be relevant but it'll give you a better idea of what I'm trying to accomplish. Let me know if that helps. Thanks!
Apr
17
revised Custom Search Not Consistent with Results
Added new code and explanations
Apr
17
comment Custom Search Not Consistent with Results
I will update the question above, one second...
Apr
17
comment Custom Search Not Consistent with Results
@G.M., I've created a custom php page that's in the root of the WordPress folder for this. Completely from scratch because I need to add the location search in as well (it's basically a second search page on the site). It's not inside a function but just on a new PHP page that I've created. It's called after the get_header() function and before the content of the page.
Apr
17
comment Pagination on Single Post
More details please? I don't understand what you're saying and that looks like an HTML comment so I'm not sure that's correct?
Apr
17
comment Pagination on Single Post
@ChipBennett that didn't do the trick...I'm assuming because I can't change pages on the single posts? I figure if there was pagination available, I'd be able to append /page/2/ to the end of the URL but that doesn't seem to work?
Apr
17
awarded  Promoter
Apr
15
comment Custom Search Not Consistent with Results
Well I'm doing a double search. One is for search terms and one is for location. If the location field is filled out and the $s filed is not (which is not in my code), then it runs through the Google Maps API and returns results. All of the posts have location markers on them. If you run a search that has $s but no location, it runs a normal. If you run both, it runs the $s and then checks those posts if they match the location criteria. What do you mean by XY problem?
Apr
15
revised Custom Search Not Consistent with Results
deleted 78 characters in body