Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.9.5, pagination, wp_reset_query
- This topic has 11 replies, 3 voices, and was last updated 11 years, 10 months ago by
srxenkrt.
-
AuthorPosts
-
03/04/2014 at 11:04 pm #281568
Reba Collins
GuestI just got to the point where my directory flowed to Page 2 but when I click on the arrow at the bottom of the page I get Error 404 – Page Not Found.
Can you help me fix this? I’m not a technical person. Below is the link where the directory is located.
http://plronestop.com/plr-supplier-directory/
Thanks,
Reba
03/05/2014 at 5:19 pm #281619Steven Zahm
Keymaster@ Reba
Well, I see the issue … but I would need to know more about your site setup to understand why. Here’s the issue … you might know why it is occurring…
Your directory is on this page:
http://plronestop.com/plr-supplier-directory/The page two of the directory is going to this page:
http://plronestop.com/review/sell-plr-plugins/pg/2When it should be this page:
http://plronestop.com/plr-supplier-directory/pg/2Notice how different those two links are. If you visit the last link, you’ll see that it does indeed go to the second page in the directory.
A couple questions…
Is the directory home page set to the page the directory is on?
What is the exact shortcode you are using on the directory page?03/05/2014 at 10:25 pm #281624Reba Collins
ParticipantHmmm, this might have something to do with Josh’s development work – he added my review function.
I guess I should contact him, huh?
03/06/2014 at 2:20 pm #281642Steven Zahm
Keymaster@ Reba
Sorry, yes, it seems you’ll have to reach out to home. I’m not certain why the review modification would affect the pagination links.
03/06/2014 at 8:43 pm #281662Reba Collins
ParticipantOkay, I thought I submitted this info but I guess not.
Josh says he’s sure it’s not because of his code, so before I pay him to fix it, can we please make sure it’s not the base program?
The link I have in set-up is this one:
http://plronestop.com/plr-supplier-directory/and the shortcode on that page is this:
[connections enable_content="true"]I also have another page that is the first page people go to when clicking to the directory from the homepage, it shows “featured” only:
http://plronestop.com/featured-suppliers/and the shortcode on that page is this:
[connections force_home='TRUE' category='60' order-by='department|SORT_DESC',]I have a link on the “featured” page to the main directory – the main directory is the one that doesn’t have a page 2.
Thanks,
Reba
03/07/2014 at 8:31 am #281673Steven Zahm
Keymaster@ Reba
Well, that all looks fine. I’m going to need a temp admin account so I can look at the code in the plugin editor.
03/07/2014 at 8:54 am #281676Reba Collins
ParticipantThis reply has been marked as private.03/07/2014 at 10:04 am #281678Steven Zahm
Keymaster@ Reba
This was definitely a bug with the Reviews extension for Connections. When I disabled the plugin the pagination worked as expected.
I did locate and fix the bug in the extension. This is a bit technical… please bare with me. The reviews are stored as a custom post type within WordPress. This in an excellent way to handle saving reviews. Now, to show those reviews for each entry, you need to query that custom post type to retrieve all the reviews that have been submitted for each entry. Doing a custom query alters the initial main query that WordPress made to originally show the page. The pagination and many other items in core Connections relies on the data from the initial main query. Now, the fix was as simple as resetting WordPress back to the initial main query by adding
wp_reset_query();after the reviews for each entry is shown.03/07/2014 at 10:07 am #281679Steven Zahm
Keymaster@ Reba
Oh, I installed the WP Editor plugin, just so you know where that popped up from. It makes editing plugins and themes much easier. Please feel free to delete it.
03/07/2014 at 3:31 pm #281690Reba Collins
ParticipantSteven,
Thank you so much for taking a look AND fixing it.
I’m wondering, after a reader clicks to page two, if they then click a category, they only see what would have landed on page 2 of All Categories, not everything in the category the click on. Is it supposed to do that?
Thanks again,
Reba
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
