ifelse
Forum Replies Created
-
Forum: Plugins
In reply to: Please Recommend Keywords for Posts PluginTo follow up on Podz’s post. I’m using Jerome’s plugin on my site and would definitely give it my full recommendations.
Forum: Your WordPress
In reply to: Exploding-boy.com RedesignVery nice. A clear and pleasing colour scheme backed by an interesting two-tier layout. Good job:)
Forum: Your WordPress
In reply to: WordPress is a remarkably flexible CMSI like the theme chosen for http://lakefront.laroccamusic.com ๐
Forum: Fixing WordPress
In reply to: search results variableEdit: realised the code posted was incorrect.
Forum: Fixing WordPress
In reply to: The Loop -> variable? (NOT $post)“Do you happen to have a link to the documentation for that function”
Sorry, Unfortunately I don’t.
I found this by examining the source code for an earlier project that I had.Forum: Fixing WordPress
In reply to: The Loop -> variable? (NOT $post)“Does anyone know of a way to get the result of the_content into a variable? Or another way to do this?”
Try the following:
$your_variable = get_the_content();Forum: Fixing WordPress
In reply to: Mulitple Loops Specific QuestionNo problem:-) Glad I could help!
Forum: Fixing WordPress
In reply to: Mulitple Loops Specific QuestionKhaled,
Try the following:
<div id="primaryContent"><?php
$my_query = new WP_Query('category_name=gallery&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$gallery_post = $post; // save the feature post for later...
endwhile;
?><?php
if (have_posts()) :
while (have_posts()) :
the_post();
if( $post->ID == $gallery_post->ID ) continue;
update_post_caches($posts);
?><div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?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> <!-- entry --><p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?>
<?php comments_popup_link('No Comments รยป', '1 Comment รยป', '% Comments รยป'); ?></div><!-- post -->
<?php comments_template(); ?>
<?php endwhile; ?></div><!-- primaryContent -->
<?php endif; ?>
<hr /><div id="gallery">
<?php
query_posts('category_name=gallery&showpost=1');
if (have_posts()) :
while (have_posts()) :
the_post();
?><div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?></small><div class="entry">
<?php the_content(''); ?>
</div> <!-- entry --></div><!-- post -->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- gallery -->BTW, is this for BK4?
Forum: Fixing WordPress
In reply to: Did $cat =”-x” category omission break for feeds in 1.5.1.3?BTW, make sure the value is unquoted i.e.
cat =-21notcat ="-21"Forum: Fixing WordPress
In reply to: Did $cat =”-x” category omission break for feeds in 1.5.1.3?Not as far as I can tell as I’m relying on the same mechanism. Just so we’re on the same page, I’ll describe what I’m doing.
In the root index.php, before
require('./wp-blog-header.php');, I’m usingcat =-x;to exclude category xForum: Everything else WordPress
In reply to: Is WordPress appropriate for building a review site?“I presume that wordpress is basicly a pretty way to display information in a database.”
Only if you would call Microsoft Word a pretty way of displaying characters…Forum: Themes and Templates
In reply to: New theme: Revuecinema.comIn that case, it should be posted to the “your wordpress” forum.
Forum: Themes and Templates
In reply to: Developer wanted to paid work to create galleryWell according to the member status under the name, Podz is a developer:)
Forum: Fixing WordPress
In reply to: Made a Page…Now Where is It?Don’t start up duplicate threads! It’s extremely bad form to post 3 identical threads especially within 20 minutes of each other.
The codex has information on pages. You need to use wp_list_pages to list the pages.
Forum: Plugins
In reply to: Using PHP inside posts: loosing the </a> tag!Whilst I don’t use either of the two plugins, your mixing of double and single quotes (i.e. ” and ‘ ) look very suspicious indeed…