Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

How to create an archive page.


  #1  
Old Oct 8, 2012, 05:03 PM
2chicks's Avatar
2chicks
 
10 posts · Jan 2010
In Atahualpa you can specify, in the theme options, a page ID to display the archive content on.

I am having trouble as to how exactly you would do that same thing in Montezuma. Do you have to code your own archive page template?

If so, I have absolutely so idea how to start on something like that.

Thank you for the help! I am sure this is a dumb question, just not familiar with how this theme works yet.
  #2  
Old Oct 8, 2012, 07:18 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
Do you have to code your own archive page template?
yes
Quote:
If so, I have absolutely so idea how to start on something like that.
create a new main template called archive.php and copy the index.php template to it. Edit it to your liking

it's good to know how the WordPress Template Hierarchy works (do a google search)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 24, 2014 at 02:49 AM.
  #3  
Old Oct 9, 2012, 11:11 AM
2chicks's Avatar
2chicks
 
10 posts · Jan 2010
With the limited coding available in the theme, I don't see a token to bring in the archive pages. Do you have any ability to bring in the archive page list?
  #4  
Old Oct 9, 2012, 11:25 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Take a look at the 'Main Templates' section of the theme and read the on screen documentation.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 24, 2014 at 02:49 AM.
  #5  
Old Oct 10, 2012, 09:36 AM
2chicks's Avatar
2chicks
 
10 posts · Jan 2010
I understand how the templates work. I am just not sure how to code an archive page with the limited PHP in Montezuma. Is there any documentations or guide how to code that kind of a page, like Atahualpa does automatically?

I very new to this theme and I have a team waiting on a project over this one issue. I really appreciate your continued help about this.
  #6  
Old Oct 11, 2012, 11:52 AM
2chicks's Avatar
2chicks
 
10 posts · Jan 2010
Maybe I am being too vague.

These are the steps I have completed so far:

-Added a main template named "archive.php" made from a copy of the main template "index.php"
-Assigned that template to a page called "Archive"
-Checked the page on the front end and there was nothing on the page other than the title

Have I done something wrong while doing these steps?

Last edited by lmilesw; Feb 26, 2014 at 11:14 AM.
  #7  
Old Oct 11, 2012, 03:08 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The archive page will be a multi post page with the posts from the time you chose. For example, if you have an archive widget and select September 2012 and there are 5 posts from then, that is what you will see. It will look exactly like the index.php until you make changes to it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Oct 25, 2012, 04:29 PM
2chicks's Avatar
2chicks
 
10 posts · Jan 2010
Partial success in making an archive page. Within the Montezuma Options, I created a main template called "page-archive.php". This page shows a search box and Archives by Category as desired. However, the Archives by Month doesn't work.

I would like the Archives by Month to work like the standard Archives widget that appears on the sidebar, and show links for "Month, Year" for each month/year that there are posts. Here's my code for this virtual template page-archive.php:

Code:
<div id="container">
<?php get_header(); ?>
<div id="main" class="row">
     <div id="content" class="cf col8">
          <?php the_post(); ?>
          <h1 class="entry-title"><?php the_title(); ?></h1>
          <?php get_search_form(); ?>
          <h2>Archives by Month:</h2>
          <ul>
          <?php wp_get_archives('type=monthly&format=html&show_post_count=false&echo=1'); ?> 
          </ul>
          <h2>Archives by Category:</h2>
          <ul>
               <?php wp_list_categories(); ?>
          </ul>
     </div>
     <div id="widgetarea-one" class="col4">
          <?php dynamic_sidebar( 'Widget Area ONE' ); ?>
     </div>
</div>
<?php get_footer(); ?>
</div><!-- #container -->
...any suggestions on how I might get this to work? Thanks
  #9  
Old Oct 25, 2012, 06:47 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
wp_get_archives() is not one of the limited PHP that is available.

I've created an RFE for this
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 25, 2012 at 06:52 PM.
  #10  
Old Feb 23, 2014, 09:30 PM
claidig
 
9 posts · Oct 2012
Quote:
Originally Posted by juggledad
wp_get_archives() is not one of the limited PHP that is available.

I've created an RFE for this
I am experiencing the SAME EXACT problem as outlined above..I made the archive.php page from a copy of the index but I am only getting the title to display..no other content on the output of the archive page.

I am not sure what an RFE is, can someone help me out here on how to get the archive page setup.
Thank you.
  #11  
Old Feb 24, 2014, 03:05 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
(RFE = Request For Enhancement)

Here is a way to do this.
1) install the plugin 'exec php'
2) create a 'Main Template' called 'Archive.php'
3) In the template add the following
HTML Code:
<?php dynamic_sidebar( 'mtz-archive' ); ?>
4) go to dashboard->appearances->widgets and add a 'text' widget to the widget area 'mtz-archive'
5) add the following code to the text widget
HTML Code:
<div id="container">
<?php get_header(); ?>
<div id="main" class="row">
     <div id="content" class="cf col8">
          <?php the_post(); ?>
          <h1 class="entry-title"><?php the_title(); ?></h1>
          <?php get_search_form(); ?>
          <h2>Archives by Month:</h2>
          <ul>
          <?php wp_get_archives('type=monthly&format=html&show_post_count=false&echo=1'); ?> 
          </ul>
          <h2>Archives by Category:</h2>
          <ul>
               <?php wp_list_categories(); ?>
          </ul>
     </div>
     <div id="widgetarea-one" class="col4">
          <?php dynamic_sidebar( 'Widget Area ONE' ); ?>
     </div>
</div>
<?php get_footer(); ?>
</div><!-- #container -->
6) add a new page called what ever you want and select the Virtual Template 'Archive' (The 'Virtual Template box is in the right column of the page edit area
Thats it, when you go to your ppage you will see the archives by month and category
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Feb 24, 2014, 11:58 AM
claidig
 
9 posts · Oct 2012
Thank you for the extra help on this..I am fairly certain the issue I have recently PM'ed you about is caused by this same thing now.

I did all the steps you outlined and I am getting the same result still where "JUST THE TITLE" of one post is being displayed but no posts (or in the case of the PM issue..no wpsc products are displayed, only one title).

This is the same thing that was happening to the starter of this thread (2Chicks) but I can't tell if they got a solution or not.

Thanks again, hoping I can get this figured out as I think it's a simple something somewhere...lol
  #13  
Old Feb 24, 2014, 12:28 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
when you use wp_get_archives() it gives you a list of the archives as a link to the full post. This is a wordpress function and you can read about it in the wordpress codex - try a google search.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 26, 2014 at 11:21 AM.
  #14  
Old Feb 25, 2014, 01:16 PM
claidig
 
9 posts · Oct 2012
Quote:
Originally Posted by juggledad
when you use wp_get_archives() it gives you a list of the archives as a link to the full post. This is a wordpress function and you can read about it in the wordpress codex - try a google search.
I think I am understanding how the archives work (still have more to learn) but I am not getting the list of archives as you mentioned after following your detailed instructions.

I can never read an archive..but only get a display of one title of one post with a search box under it.
This is the same exact thing that is happening with the products problem on PM (minus the search box).

But if I change themes then both archives and products work fine which shows me what they should look like.

I really am good at googling and figuring this stuff out...usually...lol but this one has me in it about 15 or more hours now..trying everything I can think of...twice...lol

Thanks.

Last edited by juggledad; Feb 26, 2014 at 11:21 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATCH 373-07: make the 'Page' footer work for the archive page juggledad New Versions, & Updating 0 Mar 8, 2012 07:23 PM
Customizing tag archive page Innocent Center area post/pages 9 Feb 20, 2011 06:54 AM
News Archive Page SupraTT Atahualpa 3 Wordpress theme 1 Dec 2, 2009 06:33 PM
How to make an Archive Page? HalfWayThere Atahualpa 3 Wordpress theme 13 May 5, 2009 07:42 PM
Archive Page Problems adashofsass Atahualpa 3 Wordpress theme 4 Mar 9, 2009 11:08 AM


All times are GMT -6. The time now is 02:38 PM.


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