Permalinks Break Detail Pages
I'm trying to get WordPress permalinks to work nicely with Pods and running into trouble.
Pods 1.8.1 + WP 2.9.1
Only other plugins are Akisment and Pods UI
If I turn off WP permalinks (set to the default), the /state and /state/* Pods pages work just fine : ) When set to default, my .htaccess looks like:
<pre><IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
BEGIN WordPress
END WordPress</pre>
When I turn on permalinks regardless of structure, but always using /%postname%/ as recommended - the Pod pages stop working correctly. WP pages work fine. The Pod pages do not throw a 404 and display the proper title, it's just that the pod content is not shown. I can verify that the pods.php template is being used from the comments output.
.htaccess looks like this at that point
<pre> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
BEGIN WordPress
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
END WordPress
</pre>
Any thoughts greatly appreciated!
5 Answers
Ah looks like you've got doubles going on. Try this:
Clear your htaccess file and reupload it as an empty file
Turn off and back on your Permalinks (set to whatever structure you want)
Try again to view your Pod Pages
Let me know if that works! If it doesn't, feel free to join up in our Chat room and get some one-on-one.
Hi Scott, I tried as you suggested and the problem remains.
To be clear, my .htaccess is now as follows when I look at it after turning permalinks back on.
<pre>
BEGIN WordPress
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
END WordPress
</pre>
Sorry I missed you in the chat, send us an e-mail to pods@uproot.us with login details to your WP and I'll take a look in there to see if I can help determine the exact issue.
Scott, thanks so much - just emailed you login info.
Scott is my hero.
My pods.php template had a loop which was screwing things up.
To quote "The issue was in your theme. Pods exists outside the loop. When permalinks were turned on - WP didn't find a Page and thus didn't run the loop for members or the members/* Pod Pages. "
Removing the loop solved things.


