Yes, it removed the link if you leave it blank. I believe that shortcode just lets you remove or rename the link. But it doesn’t resolve the issue of the link actually not working.
Anyone come up with a solution?
Thread Starter
tmuka
(@tmuka)
FWIW, i’m still using a jQuery workaround to make the link point to the correct place. This code assumes your entries slug is “entry”, you’ll have to change this snippet if yours is different.
<script type="text/javascript"><!--
jQuery(function($) {
// this hack fixes a bug in the gravity directory plugin that breaks the back to directory links
$('.entryback a').attr('href',function(i,href){ return href.slice(0,href.indexOf("/entry")); });
});
//--></script>
Hope this helps somebody else!
@ tmuka. Where exactly do I add this snippet of code? In the meantime, I will try a few things. Thanks in advance.
@bigshoeinc, put the code above in your page that has the directory shortcode. I went into HTML mode and posted the code at the top of my page. Thanks @tmuka for the solutions.
You wouldn’t happen to have a work around for the problem with users editing their own entry?
Thanks,
DJ
Thanks DJ for clearing that up for me. Perfect.
I have the same problem with the back link. I use permalinks and the back link goes no where. 🙁
@tmuka — Thanks, that basically worked for me. I just added that JS to my header.php file, and changed the “$” to “jQuery”, so it became
jQuery(document).ready(function(){
jQuery('.entryback a').attr('href',function(i,href){
return href.slice(0,href.indexOf("/entry"));
});
});