|
#1
Jul 8, 2010, 12:12 PM
|
|
I need to customize the static page template and there doesn't seem to be a static page php file in the Atahualpa folder?
|
#2
Jul 8, 2010, 02:21 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
there isn't a page.php in atahualpa. What do you need to customize?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Jul 8, 2010, 02:27 PM
|
|
Two things:
1. make static pages not contain a title.
2. know how to make page templates for the future (for example one that shows only posts from one category).
I've done this before with simpler themes, but atahualpa looks different. will this work in atahualpa? (it's the page of posts template from wordpress.org:
PHP Code:
<?php
/*
Template Name: Covers
*/
get_header(); ?>
<div id="content" class="narrowcolumn">
<?php
if (is_page() ) {
$category = get_post_meta($posts[0]->ID, 'cover', true);
}
if ($category) {
$cat = get_cat_ID($category);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = 4; // -1 shows all posts
$do_not_show_stickies = 1; // 0 to show stickies
$args=array(
'category__in' => array($cat),
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged,
'posts_per_page' => $post_per_page,
'caller_get_posts' => $do_not_show_stickies
);
$temp = $wp_query; // assign orginal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
if( have_posts() ) :
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('¬´ Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
<?php endif;
$wp_query = $temp; //reset back to original query
} // if ($category)
?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
3. (unrelated but you might know) I don't want to use table on a page. Will uding <div cales="..."> and editing the style.css file work?
|
#4
Jul 8, 2010, 03:28 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
to make a template, you want to copy the index.php and use it as a base. There is a
HOWTO: a 'Custom Query' PAGE template ( http://forum.bytesforall.com/showthread.php?t=7822)
Quote:
This page template will allow you to use one template on any number of pages and craft a query to show posts on that page.
Want to show all the posts in a category - you can do it
Want to show all the posts for several categories - you can do it
Want to show all the posts for a tag? - you can do it
Want to show all the post except those from a category? - you can do that
Want to show all stickies? - yup, you can do that too
Here is what you do:
1) Install the attached template into the atahualpa folder
2) add a new page and use the template 'BFA Custom Query template'
3) add a custom field called 'bfa_custom_query'
4) craft your query
|
the gold forums are avaliable to members who have donated $20 or more.
in item (3) you say:
Quote:
Will uding <div cales="...">
|
What?? Note there is an area in the options called CSS Insert that allows you to add css inserts as a theme option. this way, when you update the theme, you don't have to go back and change the code.
__________________
"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; Nov 5, 2011 at 07:10 PM.
|
#5
Dec 12, 2010, 11:45 PM
|
|
|
|
69 posts · Feb 2009
Minneapolis, MN USA
|
|
Quote:
Originally Posted by juggledad
there isn't a page.php in atahualpa. What do you need to customize?
|
I am trying to use WP-eCommerce 3.8beta. It requires there be a "page.php" to work.
How can I integrate it?
Thanks and sorry if this is to vague a question.
Tom
|
#6
Dec 13, 2010, 05:00 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Where did you get the beta so I can see what is says to do
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#8
Dec 13, 2010, 09:13 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
can you point to the exact forum thread? that link takes you to the forum page and I'm not looking thru them all...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Dec 13, 2010, 09:39 AM
|
|
|
|
69 posts · Feb 2009
Minneapolis, MN USA
|
|
|
#10
Dec 14, 2010, 06:34 PM
|
|
|
|
69 posts · Feb 2009
Minneapolis, MN USA
|
|
What would be the single post page.php equivalent in Atahualpa?
|
#11
Dec 14, 2010, 07:26 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Index.php - you can copy it and call the copy single.php and add your mods there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#12
Dec 14, 2010, 11:58 PM
|
|
|
|
69 posts · Feb 2009
Minneapolis, MN USA
|
|
Thanks again JD!
|
#13
Sep 20, 2011, 12:54 AM
|
|
I am running into a similar issue. Copying index.php to either single.php or page.php did not solve the problem. Does anyone know how to make atahualpa work nicely with wp-e-commerce 3.8?
thanks,
-mike
|
#14
Sep 20, 2011, 06:45 PM
|
|
|
|
69 posts · Feb 2009
Minneapolis, MN USA
|
|
Hi Mike,
I found the guys at wp-e-commerce to be very helpful. I don't know enough to know what's going wrong for you, but they even created a hook in the software for single.php just to solve my issue.
See if they can offer any help there too. They want their product to work well for most themes.
http://getshopped.org/forums/
Tom
|
|