Output comment_author in array
I finally figured it out. I was trying to call the wrong wp function. By using get_comment_author() instead of comment_author() the link displays as desired.
I finally figured it out. I was trying to call the wrong wp function. By using get_comment_author() instead of comment_author() the link displays as desired.
There is a missing </style> tag, and a <?php } for the function function modularity_admin_header_style() { ?> <style type=”text/css”> #headimg { height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; width: <?php echo HEADER_IMAGE_WIDTH; ?>px; } </style> <?php }
remove_filter( ‘the_content’, ‘printme_add_link’ ) will prevent the link from being placed. You can just call printme_add_link() in your template to generate the print button. Alternately, you can just add_query_arg( ‘print’, 1, get_permalink() ) and use that as the link if you would prefer to do the link some different way.
You should not and do not need to write to pluggable.php (or any other core WordPress file). You can override a pluggable function simply by defining it in your plug-in’s files (or for themes, functions.php). These get loaded before pluggable.php, and so the function definition given in your plug-in file is used in preference to … Read more
I’m kinda confused on why you’re passing 0 as meta_value, but if your storing unix timestamps under anniversary_date, this approach should be sufficient: // queries anniversary dates between today and the next 30 days $query = new WP_Query(array( ‘order’ => ‘ASC’, ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘anniversary_date’, ‘meta_value’ => array(strtotime(‘today’), strtotime(‘+30 days’)), ‘meta_compare’ => ‘BETWEEN’ … Read more
you can modify or create a simple posts loop with only feature image in there. so you could use something like : <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class=”feature-image”> <a href=”https://wordpress.stackexchange.com/questions/55244/<?php the_permalink(); ?>”><?php the_post_thumbnail(); ?></a> </div> <?php endwhile; ?> <?php wp_reset_query(); ?> then your CSS can be: .feature-image … Read more
You have to pass the second parameter $post to get_the_time(‘j’): get_the_time( ‘j’, $post ); If you don’t WordPress will just use whatever the current global post object is.
The problem was with WP-Super-Cache plugin. When I was logged in, it wasn’t serving me a cached file, so my template redirect was being executed. Not sure if this is a known liability with WP-Super-Cache. My solution was to make a template for page-testimonials.php where I set up my PHP redirect. After flushing the cache, … Read more
You’ll need to do a couple of things. First, in your functions.php file you’ll want to find the section that deals with post thumbnails and add an appropriate images size if one is not already included. To do this, you’ll want to use add_image_size() <?php add_image_size( $name, $width, $height, $crop ); ?> where name is … Read more
This: <nav> <?php wp_nav_menu( array( ‘theme_location’ => ‘main-menu’ ) ); ?> </nav> . Should be: <nav> <?php wp_nav_menu( array( ‘theme_location’ => ‘main-menu’, ‘menu_class’ => ‘main_menu’ ) ); ?> </nav> The css: .main_menu { font-size: 14px; // example } . Learn more here: wp_nav_menu Best of luck, Sagive