Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Wordpress / Arhiva po kategoriji i mjesecu

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
strija



Joined: 14 Sep 2003
Posts: 473
Location: Čakovec

PostPosted: 16.04.2010 08:56    Post subject: Wordpress / Arhiva po kategoriji i mjesecu Add user to your forum ignore list Reply with quote

Pokusavam vec par sati i nikako da uspijem dobiti ovo. Znaci kao prvo bi trebao dobiti listu mjeseci sa brojem clanaka. To radi normalno sa:
Code:
wp_get_archives();

Ali problem je u tome sto bi ja trebao tu listu ograniciti na samo jednu kategoriju.

Uspio sam naci neke pluginove i 1 cak radi, ali problem je sto linkovi ne rade. Linkovi izgledaju ovako:
Code:
http://mojsite.hr/2010/04/?cat=3

To radi redirekciju na:
Code:
http://mojsite.hr/kategorija/ime/


Jos bi i mogao taj dio promijeniti u kodu plugina, ali neznam kako uopce dobiti listu clanaka za npr. 1 kategoriju samo za 3. mjesec 2010.

Ima netko ideju?

_________________
We can exist in ambiguity, but it means the deepest loneliness. | creolab.hr | thefarewellreason.com
Back to top
View user's profile Send private message Visit poster's website
Gaston



Joined: 14 Dec 2003
Posts: 619
Location: 10310

PostPosted: 16.04.2010 13:15    Post subject: Add user to your forum ignore list Reply with quote

nisam bas siguran da sam dobro shvatio kako i gdje hoces prikazivati arhivu, mozda ti ovaj plugin moze pomoci Smart Archives Reloaded

ovdje je live primjer, samo godine zamijenis sa kategorijama
Back to top
View user's profile Send private message
strija



Joined: 14 Sep 2003
Posts: 473
Location: Čakovec

PostPosted: 18.04.2010 11:43    Post subject: Add user to your forum ignore list Reply with quote

Trebalo tocno ovo sto se dobije sa wp_get_archives(), znaci lista mjeseci, ali ograniceno na samo 1 kategoriju. Stvarno cudno sto WP to nema u coreu.

Uspio sam nekako kobinacijom 2 plugina i malom izmjenom koda plugina. Sada mi linkovi izmgledaju ovako:
Code:
http://neka-domena.hr/2010/04/in-events/

Znaci iza datuma dolazi "in-", pa iza toga slug od kategorije.

Ako nekom zatreba to su:
Archives for a Category
Category Based Archives

_________________
We can exist in ambiguity, but it means the deepest loneliness. | creolab.hr | thefarewellreason.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group