j-sir
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: the_content not working…I saw the title coming up, and not the content. But I solved it myself… Hadn’t included this part in single.php:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Thanks anyway!
Forum: Fixing WordPress
In reply to: the_content not working…I have the same issue with my theme. It’s my first own theme, so I’m probably just stupid, but I really can’t figure out why
the_content
isn’t working.get_the_content
as well. They both work in the loop, but not on my single.phpsingle.php:
<?php get_header(); ?> <div><?php the_title(); ?></div> <div> <?php if (is_single()) { echo $the_content; echo "is_single = true"; } ?> <? echo $post->post_content; ?> </div> <div class="main">hehe<?php the_content('Read more...'); ?></div> <?php get_footer(); ?> <?php the_content(); ?>
Forum: Plugins
In reply to: Grid-a-licious Theme Audioplayer 2.0 beta! HELP!!!Sorry, I mean “header.php”, located in wp-content/themes/grid-a-licious (or via WordPress theme editor)
Just include “<?php wp_head(); ?>” (without the quotation) before everything else.
Forum: Themes and Templates
In reply to: Grid-a-licious amendments!I guess it’s all about stripping everything but the image itself, right?
Something like this might work: (haven’t tested it!)
index.php
<?php get_header(); ?> <div class="navigation_group"> <?php next_posts_link('<div class="eachpost "><div>—Older</div></div>') ?> <?php previous_posts_link('<div class="eachpost "><div>Newer—</div></div>') ?> </div> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $upload_path = get_option( 'upload_path' ); $upload_path = trim($upload_path); $img_full_url = post_image(); if ($img_full_url != "") { $temp = substr(strrchr($upload_path, "/"), 1); list($url, $filename) = explode($temp, $img_full_url); $img_url = $upload_path . "/" . $filename; $imagesize = getimagesize($img_url); list($width, $height, $type, $attr) = getimagesize($img_url); $theClass = "eachpost "; if ( $width < "440" ) { $new_width = "200"; $theClass = "eachpost "; } else if ( $width < "660" ) { $new_width = "430"; $theClass = "eachpost twocols"; } else { $new_width = "660"; $theClass = "eachpost threecols"; } $new_height = ($height*$new_width)/$width; echo '<div class="'.$theClass.'"> <div><a href="<?php the_permalink() ?>" rel="bookmark">'; ?> <?php echo '<img src="' . $img_full_url . '" width="' . $new_width . '" height="' . $new_height . '" /></a>'; } ?> </div> </div> <?php if ( comments_open() ) comments_template(); ?> <?php endwhile; else: ?> <div class="warning"> <p>Sorry, but you are looking for something that isn't here.</p> </div> <?php endif; ?> <div class="navigation_group"> <?php next_posts_link('<div class="eachpost "><div>—Older</div></div>') ?> <?php previous_posts_link('<div class="eachpost "><div>Newer—</div></div>') ?> </div> <?php get_footer(); ?>
Forum: Plugins
In reply to: Grid-a-licious Theme Audioplayer 2.0 beta! HELP!!!I think it’s the “head.php” that doesn’t have the
<?php wp_head(); ?>
part included. Simply add it in the <head> section, and it should be fixed.Forum: Fixing WordPress
In reply to: Safari 4 beta and 2.7.1 EditorThe Tag chooser doesn’t work either, and Google Gears doesn’t seem to load…
I really don’t see why this is happening… Sure, it’s a beta and all that, but the WP-admin area isn’t more complex than common AJAX, right? (or something like it, i don’t know ??