Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   yearly archive (http://forum.bytesforall.com/showthread.php?t=22567)

lkjc Jun 13, 2014 12:11 PM

yearly archive
 
hello,

I don't want my archives collape and to be from past to new;
which mean :

2009
2010
2011
2012

and not
2012
january
feb...
2011
2010....


thanks for help
regard

juggledad Jun 13, 2014 01:13 PM

What is the url of the page you are talking about?
Or do you mean the way widgets display the archives?

lkjc Jun 14, 2014 03:59 AM

hi !
the page is : http://jmboucheron.fr/W/

the website has been hacked and had to do it again. we want it exactly the same as before.

I would like :
http://web.archive.org/web/201110250...siteWP/?m=2011

I had a pluging before, which is not developped and don't work anymore.

for the moment I put http://wordpress.org/support/plugin/...ve-list-widget
but can't put :

2009
2010
2011
2012

Asked to developper widget too, but prefer not to have to much widget if possible ( the more you have the more you can be hacked....)

thank you very much for help.
regards

juggledad Jun 14, 2014 05:15 AM

The archive widget has nothing to do with the theme. The only wigets that come with the theme are the ones that start with 'BFA'.

You need to hope the plugin developer will help you or you might have to hire someone to change the plugin's code.

lkjc Jun 14, 2014 09:32 AM

Quote:

Originally Posted by juggledad (Post 109172)
The archive widget has nothing to do with the theme. The only wigets that come with the theme are the ones that start with 'BFA'.

I know that widget has nothing to do with the theme and, as I wrote before, I'd rather not to put a pluging. I put it waiting a solution eather from you or the pluging developper.
the question is : If I've no pluging, how can I have the style I want ?

If I put the usual archives widget ( which is by default by month) I don't find anywhere a archive.php or a code with archive something.... Is there a place where i can change the code from month to year in your theme ?
thank you very much for help

juggledad Jun 14, 2014 09:59 AM

The code a plugin uses is separate from the theme code.

juggledad Jun 14, 2014 11:55 AM

You can set an archive page (ATO->Create ARCHIVES PAGE->Archives Page ID but you will have to edit the theme code to get the list in ascending order

edit bfa_post_parts.php (version 3.7.15) and change line 190 from
HTML Code:

                        <?php wp_get_archives('type=' . $bfa_ata['archives_date_type'] . '&show_post_count=' .
to
HTML Code:

                        <?php wp_get_archives('order=ASC&type=' . $bfa_ata['archives_date_type'] . '&show_post_count=' .
make sure to keep good notes because you will have to change this code each time there is a theme upgrade.

This will only give you the year, month, week or post title depending on what options you choose.

lkjc Jun 15, 2014 07:01 AM

thanks for help.
why Do I have to create a page ?

I just want the usual archive widget to be based on years and not on months.


thank you

lkjc Jun 15, 2014 07:03 AM

thanks for answer.

Why do I have to create a new page if I just want to use the usual archive widget ?

thank you

juggledad Jun 15, 2014 01:52 PM

If you are using the archive widget then it's not a question I can answer. You asked where the archive.php is for the theme - there isn't one but if you go to the archive section of the theme options you can read about what you can do.

If you just want to have the years in the widget showing up oldest to newest then you need to look at the widget code which is not part of the theme.

lkjc Jun 16, 2014 01:37 AM

ok,
thank you very much for your help.

regards


All times are GMT -6. The time now is 06:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.