December 24th, 2009 By WP Tricks Posted in Tricks
This is another nice tweak for your WordPress, with Publish The Feed later, you can schedule it and make it more easy to your reader. or do you have another plan?
I got this tips from WP Engineer, Like we all know WordPress works with a special query, which acts differently depending on the user rights. It is always saved in the variable $where and differently assembled. That means, you can extend it. Read the rest of this entry »
Amazing Touch
Tags: Code, Feed, Functions, Later, Learm, Pending, Query, Special
4 Comments
February 20th, 2010 By WP Tricks Posted in Tips
WordPress is: Themes, Plugins, Widget, Shortcode, PHP and GPL Licensed. Did you know that, beside Widgets, Another useful WordPress API is shortcode, and now I will show you how to added permalinks shortcode into our WordPress site. Why this shortcode is useful? because with permalinks shortcode The generated URL will be updated automatically, when original permalinks on page or post change.

How To Added Permalinks Shortcode
Let’s get started, write down permalinks shortcode functions on your functions.php in your current theme
function do_permalink($atts) {
extract(shortcode_atts(array(
'id' => 1,
'text' => "" // default value if none supplied
), $atts));
if ($text) {
$url = get_permalink($id);
return "<a href='$url'>$text</a>";
} else {
return get_permalink($id);
}
}
add_shortcode('permalink', 'do_permalink');
Read the rest of this entry »
Amazing Touch
Tags: API, Links, shortcode
47 Comments
February 10th, 2010 By WP Tricks Posted in Tricks
FeedBurner is easy method to display our total reader. And using a little PHP code we can display our total FeedBurner Reader in Text in WordPress is easily. To implemented this code is easy, all need to do write down PHP FeedBurner Counter below in our themes files, example in sidebar.php, header.php or footer.php. Let’s get started
<?php
$url = file_get_contents('https://feedburner.google.com/api/awareness/1.0/Get
FeedData?uri=YOUR FEED ADDRESS');
$begin = 'circulation="'; $end = '"';
$page = $url;
$parts = explode($begin,$page);
$page = $parts[1];
$parts = explode($end,$page);
$fbcount = $parts[0];
if($fbcount == '') { $fbcount = '0'; }
echo '<div class="subscribe"> '.$fbcount.' Subscribers</div>';
?>
Please note you need replace YOUR FEED ADDRESS with your Feeds, Example our FeedBurner Address is “http://feeds.feedburner.com/WPTricks” and test it out…
Read the rest of this entry »
Amazing Touch
Tags: Code, FeedBurner, Text
4 Comments
July 14th, 2010 By WP Tricks Posted in Tricks
If you are WordPress fanatics, there is some reason why we need to added extra classes on some WordPress standard code. Example we need adding extra classes and other attributes on previous_post_link() and next_post_link().

Adding Classes In WordPress - Anri Sugihara
To do this WP Tricks, we need to create some function on our functions.php, the function we need is to added the code with add_filter method. Follow this tricks
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes()
{
return 'class="styled-button"';
}
Read the rest of this entry »
Amazing Touch
Tags: add_filter, Classes, Functions, Tweak
No Comments
Remove nofollow attributes from comment text
February 19th, 2010 By WP Tricks Posted in TipsWordPress added nofollow attributes on comment text url, this is bad for some commeter that needed some backlinks, if you want remove nofollow attributes from comment text in your WordPress site is easely, all need to do just added some code on functions.php on your theme and added some wordpress hooks using add_filter functions and your external url on comment text will be gone.
Write down to remove noffolow attributes on comment text below
function remove_nofollow($string) { $string = str_ireplace(' rel="nofollow"', '', $string); return $string; } add_filter('comment_text', 'remove_nofollow');And done, now you can check on your comment area with url and the nofollow attributes is gone
thanks for DigWP for share this code
Amazing Touch
Tags: add_filter, Comment, dofollow, Hooks, nofollow
17 Comments