View Full Version : Wordpress Help - anyone?
Michael_Lambert
24th of February 2009 (Tue), 14:04
Okay,
Trying to use Wordpress as a gallery presenter. Theme Tarski with using WordPress 2.7.1.
I am starting to get the hand of it and the navigation side of things, however where i am stuck is i have a static hompage and i have my categories listed. when you click on my category it goes and displays all the blog post in that category. Images and ALL is there not a way i can have the category page to only display the blog titles?
I am using the plugins Lightbox and YAPB.
Please keep in mind i have not done much to it, still testing the settings but you can jump in here and see what i mean. Please keep in mind iam not all that great with WP Coding so please don't just post all this code with out some explanation.. lol I am already mind boggled researching the info.
www.michaellambertphotography.com/photoblog
SirStuey
24th of February 2009 (Tue), 15:24
Looking at your blog, I navigated to the "children" category and do see what you mean - title, date, and then photos.
Login to your blog's dashboard, go to "appearance" and then "editor."
Open up the "archives" php page on the right. You can also do all this offline, but online is quick and easy enough.
I don't know what your theme looks like, but this is a snippit from my theme's code (toolguyd.com). Look for the following line of code in your "archives" page.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Somewhere after that you need to search for the following code.
<?php the_content(); ?>
Now, you can do either of two things. Delete it entirely, or change 'content' to 'excerpt'. If you delete it entirely, your're going to need to modify the code more to make things look "right." What the excerpt does is post the first few dozen words of a post, OR a brief summary of your choosing. When you write or edit a post, you can type out a custom excerpt. This way, you can include a brief explanation as to what a viewer should expect to see from that post.
Michael_Lambert
24th of February 2009 (Tue), 19:03
Humm...
Found it and made the change, however nothing happened :( I even removed all the coding from this page to see what would happen and nothing ??
<?php
/*
Template Name: Archives
*/
get_header(); ?>
<?php if (have_posts()) { while (have_posts()) { the_post(); ?>
<div class="primary-span entry">
<div class="meta">
<h1 class="title"><?php the_title(); ?></h1>
<?php edit_post_link(__('edit page','tarski'), '<p class="metadata">(', ')</p>'); ?>
</div> <!-- /meta -->
<?php if(get_the_content() != "") { ?>
<div class="content">
<?php the_excerpt(); ?>
</div> <!-- /content -->
<?php } ?>
</div> <!-- /page header -->
<div class="primary">
<h3><?php _e('Monthly Archives', 'tarski'); ?></h3>
<ul class="archivelist xoxo">
<?php get_archives('monthly', '', 'html', '', '', 'TRUE'); ?>
</ul>
<?php th_postend(); ?>
</div> <!-- /primary -->
<?php } } ?>
<div class="secondary">
<?php if(get_tarski_option('show_categories')) { ?>
<h3><?php _e('Category Archives', 'tarski'); ?></h3>
<ul class="archivelist xoxo">
<?php wp_list_cats('sort_column=name&sort_order=desc'); ?>
</ul>
<?php } ?>
<?php th_sidebar(); ?>
</div> <!-- /secondary -->
<?php get_footer(); ?>
Michael_Lambert
24th of February 2009 (Tue), 19:06
Turns out the first one is Archives page template which has the snipets you where talking about, I do have archives.php which does not have what you where refering too.. However when i delete the stuff from this one that page does not load. So it must be something in this one i have to change.
<?php get_header(); ?>
<div class="primary posts">
<?php if(have_posts()) { // Gets it all going ?>
<div class="archive">
<?php if(is_category()) { // Category header ?>
<div class="meta">
<h1><?php echo single_cat_title(); ?></h1>
</div>
<div class="content">
<?php if(trim(strip_tags(category_description()))) { ?>
<?php echo category_description(); ?>
<?php } else { ?>
<p><?php printf( __('You are currently browsing the archive for the %s category.','tarski'), '<strong>' . single_cat_title('', false) . '</strong>' ); ?></p>
<?php } ?>
</div>
<?php } elseif(is_tag()) { // Tag archive header ?>
<div class="meta">
<h1 class="title"><?php echo multiple_tag_titles(); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing articles tagged %s.','tarski'), multiple_tag_titles('<strong>%s</strong>') ); ?></p>
</div>
<?php } elseif(is_author()) { // Author header ?>
<div class="meta">
<h1 class="title"><?php printf( __('Articles by %s','tarski'), the_archive_author_displayname() ); ?></h1>
</div>
<div class="content">
<?php if(the_archive_author_description()) { ?>
<?php echo wpautop(wptexturize(stripslashes(the_archive_autho r_description()))); ?>
<?php } else { ?>
<p><?php printf( __('You are currently browsing %s’s articles.','tarski'), '<strong>'. the_archive_author_displayname(). '</strong>' ); ?></p>
<?php } ?>
</div>
<?php } elseif(is_day()) { // Daily archive header ?>
<div class="meta">
<h1 class="title"><?php the_time(get_option('date_format')); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the daily archive for %s.','tarski'), '<strong>' . get_the_time(get_option('date_format')) . '</strong>' ); ?></p>
</div>
<?php } elseif(is_month()) { // Monthly archive header ?>
<div class="meta">
<h1 class="title"><?php the_time('F Y'); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the monthly archive for %s.','tarski'), '<strong>' . get_the_time('F Y') . '</strong>' ); ?></p>
</div>
<?php } elseif(is_year()) { // Yearly archive header ?>
<div class="meta">
<h1 class="title"><?php the_time('Y'); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the yearly archive for %s.','tarski'), '<strong>' . get_the_time('Y') . '</strong>' ); ?></p>
</div>
<?php } ?>
</div> <!-- /archive -->
<?php include(TEMPLATEPATH.'/loop.php'); ?>
<?php } else { ?>
<?php include(TARSKIDISPLAY . "/no_posts.php"); ?>
<?php } // End if posts ?>
</div> <!-- /primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
SirStuey
24th of February 2009 (Tue), 20:58
Looking at the source of your site, the <!--/archive--> comment (8th line of text from bottom of your quoted code) comes right before the "Mia" title.
It looks like you're going to have to look for the "content" or "excerpt" code in the "loop.php" file b/c of the following code:
<?php include(TEMPLATEPATH.'/loop.php'); ?>
If that doesn't work, you might want to try disabling Yapb temporarily and insert one or two photos manually into the posts to see how they behave under the same conditions.
Michael_Lambert
24th of February 2009 (Tue), 21:39
Thank you sir!
If you are in my neck of the woods i do owe you a beer or two.
Found found the line twice in the loop.. so i changed them both and its working like a charm now.
It shows the Yapb image selected and the text of the entry, which is only going to be a description of the shot ( Model name, or location kind of thing) and then you click on the primary image and it takes you into the post where the rest of the images are located for that particular item/model.
Now i just gotta get my images :D
Thanks again
SirStuey
24th of February 2009 (Tue), 21:51
No problem! I am just glad that I was able to help! =)
The layout does look a bit neater now, and the tentative descriptions should fill in the remaining space nicely.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.