Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to register a custom page template to Atahualpa sidebar manager


  #1  
Old Aug 10, 2011, 03:58 PM
Michael T.
 
12 posts · Mar 2011
I use Atahualpa in my webpage. Atahualpa is a great tool to customize the layout easily.

To show a kind of index for glossary items row by row, I use a custom page template (archiv_a-z.php):

PHP Code:
<?php
$posts 
query_posts('tag=glossary''&orderby=title&order=asc&posts_per_page=-1');
foreach(
$posts as $post) : ?>
<li class="<?=($i%2)?"color1":"color2";$i++;?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul></div>
<div id="menue">
<br><br><br><br>
<?php do_action('wp_menubar','AZ_Menue'); ?>
<br><br>
</div>
 <?php get_footer(); ?>
By this definition the template is "unknown" to Atahualpa, i.e., no sidebars are shown, neither left nor right - outer nor inner.

Can I register the custom template archiv_a-z.php to Atahualpa, so that I could specify which sidebar should be displayed?

Thanx & cheers
  #2  
Old Aug 10, 2011, 04:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You need to take a look at index.php for the header and footer info.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 10, 2011, 04:13 PM
Michael T.
 
12 posts · Mar 2011
Hi Ho,

I found a solution at Wordpress.org:

http://wordpress.org/support/topic/a...-page-template

Michael
  #4  
Old Aug 10, 2011, 04:16 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
things have changes from 2 years ago.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Aug 10, 2011, 04:45 PM
Michael T.
 
12 posts · Mar 2011
Hi Juggledad,

your are right... times are changing...

Thus I tried the short snippet from index.php only:

PHP Code:
<?php 
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
?>

...here comes my code ...
WoW that's pretty clean and short code!

Thanx juggledad

Michael

Last edited by Michael T.; Aug 10, 2011 at 04:58 PM.
  #6  
Old Aug 10, 2011, 05:18 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You need to add the footer code from Index.php to get the right sidebars and the footer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Aug 11, 2011, 01:44 AM
Michael T.
 
12 posts · Mar 2011
juggledad, thanx for the advice. But index.php shows only one call: <?php get_footer(); ?> - and this is the last line of my code (see my first posting).
Is there anything else to consider for the footer?

Cheers Michael
  #8  
Old Aug 11, 2011, 07:24 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That's it that will handle the right sidebars and footer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: a 'Custom Query' PAGE template juggledad Atahualpa 3 Wordpress theme 1 Jul 15, 2010 06:07 PM
[SOLVED] How can I insert a picture in a custom page template? reradu Atahualpa 3 Wordpress theme 10 Oct 15, 2009 02:00 AM


All times are GMT -6. The time now is 04:21 AM.


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