Continue reading How To Set Default Minimum Comment Length For WordPress Comments ?
Tag Archives: Plugins
WordPress Hack For Adding Signature After Posts Content
Open your theme’s function.php and add the following code. Remember changing text after equal sign with your own.
function custom_content_after_post($content){
if (is_single()) {
$content .= ‘<p>Load Your Content Here</p><img src=”‘. get_template_directory() .’/images/signature.png” alt=”Your Name” />’;
}
return $content;
}
add_filter( “the_content”, “custom_content_after_post” );
You may also use WordPress Signature Plugin for doing so. It allows WP users to put signatures below every post. After installing and activating it you can easily access it by navigating to WP-Admin Dashboard >> Tools >> WPSignature.
How To Display WordPress Featured Posts And Pages ?
Featured Page Widget
From this widget you can feature pages on your sidebar using an excerpt of the page and a text or image link to the page. Click here to know more features.
Download WordPress Featured Page Widget
Installation:
- Install and Activate the plugin
- Configure options from Dashboard >> Settings panel.
- Add widgets to your sidebar.
Featured Post Widget
It is a customizable multiwidget, that displays a single post in the widget area. You can decide, whether or not the post thumbnail is displayed, whether the post title is above or beneath the thumbnail and a couple of more things. You can style the widget individually.
Download WordPress Featured Post Widget
Installation:
- Install and Activate the plugin.
- Add and customize the widget.
Embeding SWF In WordPress Posts
You can easily embed SWF file inside your WordPress post either by using a plugin or by using WP hack.
Using WordPress Plugin:
- Open your Dasboard
- Visit Plugins >> Add New and Search for Easy Flash Embed plugin.
- Install and Activate it.
Use the following shortcode for embedding your SWF file in your posts:
[swf src=”http://www.example.com/file.swf” width=200 height=50]
Note: In the given shortcode replace the link address to your own SWF file address and adjust the height and width as per your needs.
Using WordPress Hack:
Here is your WP Hack. Use following code for embedding Flash directly into WordPress pages and posts etc:
<object id=”flashcontent”
classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
width=”550px”
height=”400px”>
<param name=”movie” value=”movie.swf” />
<!–[if !IE]>–>
<object type=”application/x-shockwave-flash”
data=”movie.swf”
width=”550px”
height=”400px”>
<!–<![endif]–>
<p>
Text written here will only be visible if the SWF fails to load.
</p>
<!–[if !IE]>–>
</object>
<!–<![endif]–>
</object>
Creating And Managing Tables Inside WordPress Posts
WordPress Visual Editor don’t provides you the option to create table inside your post content. Hence to create a table in WordPress you need to know HTML. Reading this tutorial you can create tables in your WordPress posts even if your are not good in HTML.
- Go to plugins menu.
- Install Easy Table Plugin and Actvate it.
- Move to Dashboard >> Settings >> Easy Table.
Here you will get various table options and previews. Now to start up with your first table use the following given format in your WP post:
[table] Domain,Company,Rank
Google.com,Google,1,
Facebook.com,Facebook Inc,2
[/table]
This is an example. You can create as many formats you want and each format should be enclosed in [table] and [/table] shortcode. Given format creates three columns: Domain, Company and Rank with three rows:
Domain |
Company |
Rank |
Google.com |
|
1 |
Facebook.com |
Facebook Inc. |
1 |
Is it possible to add a Page Tab…
Is it possible to add a Page Tab to an external link of some other website. I mean page navigation menu that is at the top of WP blog and I want to link a page tab from there to an external link of some other site.
Is there any plugin to choose an image…
Is there any plugin to choose an image for each post?
Show Related Posts In Your WordPress Blog Without Using Any Plugin
Copy and Paste the given code within the loop. It may engage your blog visitors to stay for a longer time:
<?php
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo ‘Related Posts’;
$first_tag = $tags[0]->term_id;
$args=array(
‘tag__in’ => array($first_tag),
‘post__not_in’ => array($post->ID),
‘showposts’=>5,
‘caller_get_posts’=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></p>
<?php
endwhile;
}
}
?>
This code displays posts related to current post. It is based on tags. You may change the number of posts it displays, just change ‘showposts’=>5 with your number.
Display Popular Posts In Your WordPress Blog’s Sidebar Without Using Any Plugin
You can highlight most popular content of your WordPress site in your sidebar. Copy-Paste the following code in your theme’s sidebar.php file:
<h2>Popular Posts</h2>
<ul>
<?php $result = $wpdb->get_results(“SELECT comment_count,ID,post_title
FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″);
foreach ($result as $post) {
setup_postdata($post);
$postid = $post->ID;
$title = $post->post_title;
$commentcount = $post->comment_count;
if ($commentcount != 0) { ?>
<li><a href=”<?php echo get_permalink($postid); ?>” title=”<?php echo
$title ?>”>
<?php echo $title ?></a> {<?php echo $commentcount ?>}</li>
<?php } } ?>
</ul>
It displays most popular posts on your site’s sidebar.
For changing the number of posts to display in your sidebar:
Look-up for this line in the above code block: FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″); and Replace 5 with the number of posts you like to display.
Easiest Way for Displaying both Popular and Unpopular Posts in your Sidebar:
Now easiest way to do this (display popular posts) and many other similar things like displaying both popular and unpopular posts, knowing the number of post hits is to use Most and Least Read Posts Widget Plugin.
Download from the link, activate it and start using it by placing its widgets in your sidebar. It gives you two different widgets one shows most read posts and the other shows least read posts and also it counts your post hits both on sidebar and in your dashboard All Posts list.
Add ‘Pin It’ Button To Images In Your WordPress Blog
Without using Plugin: Add this code to your theme’s footer.php file before the </body> tag. Get Pinterest’s javascript at Goodies.
<script type=”text/javascript” src=”//assets.pinterest.com/js/pinit.js”></script>
Add this code to your theme’s single.php file wherever you want Pin It button to be visible:
<a href=”http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo catch_that_image() ?>&description=<?php the_title(); ?>” class=”pin-it-button” count-layout=”horizontal”><img border=”0″ src=”//assets.pinterest.com/images/PinExt.png” title=”Pin It” /></a>
Add this code in your theme’s functions.php file:
function catch_that_image() {
global $post, $posts;
$first_img = ”;
ob_start();
ob_end_clean();
$output = preg_match_all(‘/<img.+src=[‘”]([^'”]+)[‘”].*>/i’, $post->post_content, $matches);
$first_img = $matches [1] [0];
if(empty($first_img)){ //Defines a default image
$first_img = “/images/default.jpg”;
}
return $first_img;
}
Or You may use a WordPress plugin and that would be more easy for you. Use this plugin Pinterest Pin It Button For Images. Either search it on WP Plugin search or click the link and upload the folder to the /wp-content/plugins/ directory, Activate from ‘Plugins’ menu and Enjoy.
WordPress’s VIP Team Launched New Plugin That Controls Bulk User Management On Multisite Network
VIP team launched new plugin which is capable enough to control and manage all users across many sites in a multisite network install. It can check all network users and their roles on different sites sites and helps you to edit users, user roles on different sites at a time without visiting their dashboard from All Sites Super Admin Menu.
Page Links To WP plugin allows you to…
Page Links To WP plugin allows you to make a WordPress page or post point to a URL of your choice instead of traditional URL of WP page or post. Also useful when you move your blog or create a new post instead of updating the old one. It can also redirects people who go to the old URL to the new one you’ve chosen.
Your WordPress P2 Blog Can Now Be A Full-Blown Issue Tracker
You can now have your WordPress blog as a full-blown issue tracker with Recently updated Resolved/Unresolved Posts Plugin. Test it live here in this post. Check Resolved/Unresolved button at the top right corner of this post.
- Green posts are resolved issues.
- Red posts are unresolved issues.
You also get a sidebar widget for quick overview of resolved and unresolved posts.
Source: http://kovshenin.com/2012/wordpress-as-an-issue-tracker/