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

Is there any plugin which can paste a common content to my every post?

Actually you don’t need a plugin to do this. Just add a simple function to your functions.php file: function my_content($content) { $content=”My content before post” . $content . ‘My content after post’; return $content; } add_filter(‘the_content’,’my_content’); If you don’t want additional content to appear in your feed, use following function: if( !is_feed() ) { function … 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