46 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Sells items exclusively on Envato Market
Codename says

Hey guys, I just uploaded my first wordpress theme and I have to say that TF is great :-) Since I’‘m not a WP expert, I needed some advice.

The problem is that when permalinks are enabled in the theme, the pagination breaks. I’m guessing that this is since the get variables aren’t available to the page once the url has been rewritten. So is there any way that I could retrieve the GET array from the rewritte url?

Thanks.

1744 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VisualSharing says

I believe some code snippet would come in handy here. :)

Good luck with your theme!

193 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $100+ on Envato Market
  • Sells items exclusively on Envato Market
Kontent says

Hi, it doesn’t matter if the url is rewritten, you get it the normal way because the rewritten url acts as the original url.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says
Hi, it doesn’t matter if the url is rewritten, you get it the normal way because the rewritten url acts as the original url.

That’s right. Just make sure you use the WP functions for all pagination links etc. Also set the 'paged' query attribute to get_query_var($paged) and reset query after the loop.

46 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Sells items exclusively on Envato Market
Codename says

Hi Pogoking, I reset the query after the loop, but I don’t understand what you meant by “Also set the ‘paged’ query attribute to get_query_var($paged)” ?? Btw, I have 2 queries on thepage, one for a featured post and then the next query which displays 4 posts with offset = 1. And I calculate the offset for each post based on the page number from the “paged” value of the GET array and offset the query by that number.

Also, since the permalinks do not affect the GET array, shouldn’t I be able to print the array? But when I do so I get an empty variable…

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by