Conditionals if tags exist?

Try this <?php $related = new WP_Query( ‘tag=’ . get_the_title() . ” ); if( $related->have_posts() ): <h1>Related Articles</h1> while ( $related->have_posts() ) : the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/48774/<?php the_permalink() ?>”><?php the_title(); ?></a> </li> <?php endwhile; else: //there are no related articled endif; wp_reset_postdata();?> EDIT You should not use query_posts for a secondary loop. The query_posts alters … Read more

insert a warning message into post-new.php

function my_admin_notice(){ global $pagenow; if ( $pagenow == ‘post-new.php’ || $pagenow == ‘post.php’) { echo ‘<div class=”error”> <p>This notice only appears on the add and edit post & page.</p> </div>’; } } add_action(‘admin_notices’, ‘my_admin_notice’); http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices

“about us”, ” contact” sections should be article(post) or page in the simple small Business website?

It’s totally up to you to decide to put it as a post or a page. I would put it as a page though. One important difference between them is that Pages are hierarchycal and Posts chronological. You can study each in the Codex to better decide: http://codex.wordpress.org/Posts http://codex.wordpress.org/Pages This can also be usefull: http://codex.wordpress.org/Main_Page#Learn_How_to_Use_WordPress

Images inside post title

A search and replace solution does sound viable. I wouldn’t do it via JavaScript, though. add_filter(‘the_title’, ‘wpse60174_logo_in_title’, 10, 2); function wpse60174_logo_in_title($title, $post_id) { // Add a <span> around the company name return preg_replace(‘~\bCompany\s+Name\b~i’, ‘<span class=”company”>$0</span>’, $title); } With the extra span in place it is just a matter of applying some custom styles to it. … Read more

posts not showing on index.php

The template naming is a bit confusing in this situation, but what is happening is normal behavior in the Template Hierarchy. home.php shows your posts page, whether it’s on the front page, or assigned to another page when using a static front page. If you want your home.php template to be used for your static … Read more