Posts Tagged ‘Wordpress’
September 8th, 2010
This is a really useful little snippet I found in the WordPress Codex. It allows us to check whether a page is within a specified tree, e.g. whether a page is a certain ID or if it is a subpage of that ID.
Here's the function:
function is_tree($pid)
{
global $post; // load details about this page
$anc = get_post_ancestors( $post->ID );
foreach($anc as $ancestor) {
if(is_page() && $ancestor == $pid)
{
return true;
}
}
if(is_page()&&(is_page($pid)))
...
Tags: tutorial, Wordpress, wp tricks
Posted in Tutorials, Wordpress | No Comments »
August 29th, 2010
This plugin lets you very easily insert utility boxes and buttons, which can be used for any number of things, such as drawing your visitors to important information. For example, download links.
View Live Demo
Download
Tags: short codes, Wordpress, wordpress plugin, wp plugin
Posted in Freebies, Wordpress, plugins | 4 Comments »
August 26th, 2010
If you wish to set a minimum word count for your posts (this can be useful for a variety of things, including maintaining a clean layout), simply add the following snippet to your functions.php file and set the number to whatever you wish.
function minWord($content)
{
global $post;
$content = $post->post_content;
if (str_word_count($content) < 100 ) //set this to the minimum number of words
wp_die( __('Error: your post is below the minimum word count.') );
}
add_action('publish_post', 'minWord');
If an author tries to publish a post with fewer ...
Tags: functions, Wordpress, wp tricks
Posted in Tutorials, Wordpress | No Comments »
July 26th, 2010
I'm pleased to announce that my premium WordPress Font Uploader plugin now has full support for fonts in Internet Explorer.
100% Cross Browser Compatible Fonts
This means that you can now display any font anywhere you like on your website, while being assured that it will work no matter what browser your site visitor is using.
Check out the screencast below for a demonstration of this new feature.
Convert your fonts
To convert your fonts to a .eot, readable by Internet Explorer, use the link ...
Tags: font replacement, font upload, fonts, ie fonts, internet explorer fonts, plugin, Wordpress
Posted in Wordpress, plugins | 4 Comments »
July 17th, 2010
Easily create Announcements to send out through your WordPress website.
This plugin will make it extremely easy to create announcements pertaining to meeting times, bug fixes, feature updates, event planning, and anything else!
Features
Manage Announcements with the WordPress post editor
Categorize Announcements
Recent Announcements Widget
Announcement Categories Widget
WordPress shortcodes for easy Announcement listing on any page
Multiple display options
"Additional Details" display
Works natively with any WordPress theme
Easy to customize to fit your theme just right
Detailed screencast and documentation
If you've been looking for an easy way to manage ...
Tags: announcements, code canyon, Wordpress, wordpress plugin, wp
Posted in Wordpress, plugins | No Comments »