get_username
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do you place a featured image into the post?Hi Christine,
Unfortunately, I’m programming this locally so no link is available. It does sound like you’re confident that it should work though, correct? I can’t imagine what other css would override it, but I guess anything is possible.
Thanks,
BurtForum: Fixing WordPress
In reply to: Query posts hiding my contentThanks, vtxyzzy. Just for the heck of it, I tried using:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?> <?php wp_reset_query(); ?> <?php query_posts ( 'cat=7&posts_per_page=-1' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><?php the_title (); ?></h2> <?php the_content(); ?> <?php endwhile; else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?> <?php wp_reset_query(); ?>
which is basically the post configured the same way twice, but with the wp_reset_query. It does work, but I wonder if this is not standard practice, and if your suggestion is better form?
Forum: Fixing WordPress
In reply to: Query posts hiding my content@esmi: I have posts that I’m filtering by category to display on a page. When I have query_posts above my loop, it displays the category I stated in the query (7 in this case), but not the text from (the_content) which would appear from typing within the admin page panel. Make sense?
@vtxyzzy: Thanks, I’ll give new WP_Query a try this evening and report back.
Forum: Fixing WordPress
In reply to: Query posts hiding my contentNo, nothing shows up other than the post when I have the query in place. When I delete the query, anything that I had typed in the content form will appear on the page.
Forum: Themes and Templates
In reply to: Need subpages to use main page templateThanks, Peter. I’ll look into the conditional tags. And thanks for the pointer on the templatepath, I’ll read up on this as well. Much appreciated.
Forum: Themes and Templates
In reply to: Need subpages to use main page templateI’m hoping that by posting the code I have in my header that something might be able to help. As you can see, I’m currently trying an array so that each subpage takes on the same template, but I’d like it to find something that works without me having to go in and place the page number. It should be seamless so that the client doesn’t have to rely on me for updating the header.php file.
<?php wp_reset_query(); if (is_page('37')){ include(TEMPLATEPATH.'/header-home.php'); } elseif (is_page( array('4','64','68' ) )){ include(TEMPLATEPATH.'/header-about.php'); } elseif (is_page('6')){ include(TEMPLATEPATH.'/header-services.php'); } elseif (is_page('8')){ include(TEMPLATEPATH.'/header-inthenews.php'); } elseif (is_page('14')){ include(TEMPLATEPATH.'/header-partners.php'); } elseif (is_page('10')){ include(TEMPLATEPATH.'/header-resources.php'); } elseif (is_page('12')){ include(TEMPLATEPATH.'/header-asktheexpert.php'); } elseif (is_page('41')){ include(TEMPLATEPATH.'/header-contact.php'); } ?>
Forum: Themes and Templates
In reply to: Child page automatically inherits parent templateI would like to know the same thing. Did you ever figure this out?
Thanks Matt for the reply. It still shows the extra spaces for some reason even after placing the inline style. I did a “view source” after previewing in the browser and it seems that WordPress places a
<br>
after each<a>
line. Could that have something to do with it? Oddly enough, it doesn’t show the<br>
in the HTML preview area when placing the content.Forum: Themes and Templates
In reply to: NextGen Gallery in Template.Hi Rhand,
It worked for me once I changed the meta value to the name of my custom field. In the original code
get_post_meta($post->ID, 'gid', true);
the meta value “gid” should be changed to whatever you’re using for a custom field name. As soon as those two matched it started to work.Forum: Plugins
In reply to: [cardealer] plugin: need help figuring out shortcode workaroundAnyone have any idea? My daily emails to the author is not working. I’m sure someone can look at this and know how it works.
Thanks
Forum: Fixing WordPress
In reply to: Can you help define [shortcode option1="value1" option2="value2"]Thanks dgwyer. I tried using just
<?php echo do_shortcode('[cardealer]'); ?>
, but all that does is output the text [cardealer]. I contacted the owner of this plugin to see if their shortcode is supported inside the template and they wrote back with the code above that includes options and values. I’m trying to get this:$mydealergrid = "[cardealer]"; $post_id = $post->ID; $price = c2c_get_custom('price_value'); $year = c2c_get_custom('year_value');
to output and thought that maybe the option 1 was $price and the value 1 was price_value. That didn’t work either.
Forum: Themes and Templates
In reply to: NextGen Gallery in Template.Where did you place this code in the loop?
Was the Custom Field name Gallery or Gal?
What was the value of the Custom Field, or is that just the gallery number?
Anything else I’m missing for implementing this?Thanks
Forum: Fixing WordPress
In reply to: Shortcode within the template questionI found this, but I’m not sure it’s the right solution.
Link to other WordPress forum topic
It states this as the answer and only if the plug-in supports shortcode outside the post.
<?php echo do_shortcode(‘[catlist id=1 numberposts=5)]’); ?>
Does this look correct? The problem I see with this is if there are variables. I have one shortcode just called [cardealer] while another actually calls for the ID number [nggallery id=3].
Forum: Fixing WordPress
In reply to: What's the best plan of attack on these sidebar items?Thanks Hax, I will give it a try.
Forum: Fixing WordPress
In reply to: Single template page not showing upThere was a spelling error in my header.php. I emailed my host and they ran a PHP error log showing me where it had been found. I’m glad they could point it out to me, but I’m wondering how do I run my own error log?