KG Archives V1.3

Thanks to Ajay and Carsten for pointing out the huge amount of queries that KG Archives V1.2 is generating. This is due to nested queries and permalinks fetching for the posts. I have now fixed the issue and is now only generating 4 queries and the permalinks are no longer fetched using WP’s get_permalink function. Instead, I have embed the function’s code into mine taking out the db calls to get the posts.

Anyway, version 1.3 can be downloaded at http://katesgasis.com/downloads/kgarchives-1_3.zip.

This time the archives page must have a slug of “archives” so that the plugin will not generate queries if not in the archives page.

Installation

  • 1. Uploade the kgarchives.php file to your plugins directory (/wp-content/plugins).
  • 2. Activate the plugin in the admin panel.
  • 3. Create a new page. Name it anything but make sure the slug is labeled as “archives”.
  • 4. On the page content, put the tags <!−−KGSortForm−−> and <!−−KGSortArch−−>.

8 Responses to “KG Archives V1.3”

  1. 1
    Carsten Says:

    Cool, thanks I’ll try it out… :-) I did like your implementation better than the solution I am currently using.

  2. 2
    katesgasis.com » KG Archives Plugin Says:

    [...] faster and more efficient is available for download. Installation procedure can be viewed here. « Prev [...]

  3. 3
    Ajay - On the Road called Life! » Major site problems Says:

    [...] duced from 20+ seconds to below 1 second. Guess, it just doesn't agree with my site. KG Archives has been updated since this post to solve the above problem Thing [...]

  4. 4
    Carsten Says:

    The new version is working much better, thanks! :-) One question though – is it possible to limit the default output to only the current month, with previous months being available via the selector form? This would cut down on page load/bandwith of sites with many posts. Thanks! :-)

  5. 5
    Ajay D'Souza Says:

    Carsten has a good suggestion above.

    What could be better is if you can make it customizable by passing variables or editting the plugin file.

  6. 6
    Kates Says:

    Carsten, Ajay:
    Thanks for the suggestions. That, actually, was what is in my mind right now and I think it can be done. I’ll try.

  7. 7
    DG Says:

    Hi Kates,

    After reviewing archiving plugins, I have downloaded KGArchives, as it looks nice. But I have problem in getting it work.

    I have uploaded and activated in wp-content/plugins folder.

    Then I created a Page named “Archives” and inside HTML window(WYSIWYG editor)inserted the following in the under given order.

    After this I saved the page and click to view, but nothing comes on the scree, except a blank page.

    Could you please look in and advice me. What is wrong there?

    Thanks in advance!

    Regards, DG…

  8. 8
    Kates Gasis Says:

    @DG:

    Do not use the WSYIWYG. Fire up the HTML source editor- it’s in the quicktags(HTML). Write the <kgarchives /> tag there.

Leave a Reply