This topic contains 8 replies, has 2 voices, and was last updated by Jonathan Perrodin 12 months ago.
October 12, 2011 at 2:30 pm #2673
I’ve got a directory working on a page, and can click through to a single entry. But, the ‘Back to directory’ link goes to a page with a different GF form altogether. Suggestions?October 13, 2011 at 10:12 am #2678
Please provide a link.October 17, 2011 at 1:20 pm #2705
Try to put this in your functions.php page. It should fix it. You’ll have to modify the links to match the ones on your website.
// This generates the correct backlink for the member directory
return str_replace(‘http://the_url_that_it_goes_to_now’, ‘http://the_url_you_want_it_to_go_to’, $entryback);
November 10, 2011 at 2:26 pm #3545
I have the same issue with two sites. I suspect it has to do with having multiple gravity forms since the back button goes to form id 1.
I hacked around it client side with jquery.
jQuery(‘#nav-main a:contains(“Policies”)’).attr(‘href’,'/members/’);February 1, 2012 at 3:10 pm #4528
I’m having the same problem described in the initial post. The “Back to directory” link takes me to, randomly enough, the “Contact Us” page.
I’ve not found a browser that it works in except Safari on the iPad. For some reason, it works there!
I’d appreciate any insight -
WayneFebruary 15, 2012 at 12:21 pm #4567
@Wayne (and possibly others), your site’s navigation has a funky interaction with the plugin; it adds the different “query args” to the nav links. I think since your “Contact” link is the last in the navigation, it’s being used for the
That WP loop should be reset using
wp_reset_queryand it would likely fix the issue.
I am also fixing this issue in version 3.2.2 by telling the
get_permalink()function to use the current page/post’s ID for building the back link.February 22, 2012 at 7:12 pm #4583
Zack – thanks for your reply.
Unfortunately, I’m not following you on the WP loop reset thing … (just my ignorance/inexperience). So I’ll await v. 3.2.2! Thanks for a great plugin!
WayneMarch 17, 2012 at 6:17 pm #4630
I have the most recent version and instead of going back, it loops back to the listing; the link in the top navbar is also replaced with the link to full current entry. (I know it’s ugly -> see here.
Thanks!June 20, 2012 at 11:39 am #4744
I’m having this issue also. The back to directory link is the same as the current entry page.
Can you help?
You must be logged in to reply to this topic.