Forum Replies Created

Viewing 15 replies - 76 through 90 (of 97 total)
  • What happens if you change the meta_key to startDate?
    query_posts('showposts=20&category__and(events_paid,events_free)&meta_key=startDate&meta_compare=>=&meta_value='.$todaysDate.'&orderby=meta_key&order=ASC');

    Hi, I see the icons behind the border and am able to click on them. I guess you fixed it.
    🙂

    Have you tried order=DESC?

    Have you tried <?php wp_list_categories('depth=1'); ?> ?

    http://codex.wordpress.org/Good_Navigation_Links

    Forum: Fixing WordPress
    In reply to: Editing Title

    If I understand you correctly, you would go into the header.php file and change it there.

    Thread Starter Daniella

    (@ellaj)

    Thanks for your response. I appreciate it.

    I want the title to span the 850px and to have the post text on the left and the sidebar to the right, next to the post text. Is there something else I could do to accomplish this?

    Thank you!

    Thread Starter Daniella

    (@ellaj)

    Michael,
    That worked! You are awesome!
    Thank you SO MUCH for all of your help. Taking the time to see this through means a lot.
    Seriously, I can’t thank you enough.
    🙂

    Thread Starter Daniella

    (@ellaj)

    Thank you for your help Michael. It didn’t work and I know there is a bunch wrong with the code. I realized it would be safe to avoid using the date because it won’t matter. All that matters is whether or not a post has a ‘lead_image’ custom field or not. Here’s the code from the top of the loop. What am I doing wrong?

    <?php
      wp_reset_query();
      if (have_posts()) : while (have_posts()) : the_post();
    ?>
    <?php $lead_image = get_post_meta($post->ID, 'lead_image', true); ?>
    
    <div id="single" class="single-narrow">
      <div class="post post-single">
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
          <?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'Before') { echo '<div class="sep">&nbsp;</div><div class="banner">'.stripslashes($wpzoom_ad_content_imgpath)."</div>"; }?>      
    
    	 <div class="content_top-<?php if(get_the_time('Y')<='2009' && $lead_image == 'false') echo 'no_header'; ?>">
           <div class="wrap">
           		<img src="<?php echo $lead_image; ?>" alt="Image for Post #<?php the_ID(); ?>" />
    
    			<div class="title">
         			<img src="<?php bloginfo('stylesheet_directory'); ?>/images/brownlens.png" alt="Lens Icon" width="43px" height="56px" class="lens" />
          			<h1 class="spt"><?php the_title(); ?></h1>
          			<p id="title_data">in <span class="category"><?php the_category(', '); ?></span> by <?php the_author_posts_link(); ?> <span class="datetime"> &mdash; <?php the_time("$dateformat \a\\t $timeformat"); ?></span> | <a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number('0 comments','1 comment','% comments'); ?></a><?php edit_post_link( __('Edit'), ' | ', ''); ?></p>
          		</div><!-- end title -->
         	</div>
          </div>
    
    				<div class="sep">&nbsp;</div>
    
            <?php the_content(''); ?>

    Thread Starter Daniella

    (@ellaj)

    OK. Now I’m really confused…this is what I did because I have no idea how to combine if statements:

    <?php $lead_image = get_post_meta($post->ID, 'lead_image', true); ?>
    
           <div class="content_top-<?php if(get_the_time('Y')<='2009') && $lead_image == 'true' { echo 'no_header';} ?>">

    Thank you!

    Thread Starter Daniella

    (@ellaj)

    Sounds good to me.

    In addition to the posts from 2009 and earlier having ‘style a’, I need to also give posts that don’t have the lead_image custom field value to have ‘style a’ as well.

    I have a posts from 2010, but there is no ‘lead_image’ custom field associated with it so I need it to have the style that earlier posts do.

    Can I add something like (get_post_meta($post->ID, 'books', true)): in there somewhere? (I tried that bit and it didn’t work at all.) As you can tell I don’t know php.

    Thank you for any help.

    Thread Starter Daniella

    (@ellaj)

    Thanks, Michael. Someone told me to do:
    <div class="content_top-<?php if(get_the_time('Y')<='2009') echo 'no_header'; ?>">
    Is there a right way or wrong way?

    Thanks again.

    Thread Starter Daniella

    (@ellaj)

    I did copy over what was in the duplicate query posts. Was that the right way to do it?

    Initially I had a template called entertainment.php and a few things were going wrong, especially with page-navi so I deactivated the plugin. Another problem I was having is that the next page link wasn’t working…it would just refresh the current page.

    What I ended up doing was renaming the template category-3.php and I got it to work but haven’t activated page-navi yet. I would like to know why it worked when I renamed the template.

    I have a lot to learn. 🙂

    Thanks for your help.

    Thread Starter Daniella

    (@ellaj)

    That fixed one of the problems. Thank you!

    Thread Starter Daniella

    (@ellaj)

    Anyone? How do I separate the text from the content images?

    Thread Starter Daniella

    (@ellaj)

    Yes, so I can have the text in the larger left column and a widgetized area for the right column. The images in the post need to stay at 850px.

Viewing 15 replies - 76 through 90 (of 97 total)