Monarch Plugin Custom Shortcode for WordPress

I am a web designer so naturally I do not follow standard website layouts… I love the Monarch social sharing plugin for WordPress, but I needed a way to add the inline sharing buttons to a custom sidebar that I’ve made. I searched high and low to find a way to do this using their settings but there is just no way to do it.

They have a shortcode for adding the Follow buttons anywhere you want but not the sharing buttons. I went ahead and added this capability by adding a few lines of code to their plugin. Here is how you do it.

1. Find the function named “display_inline” in monarch.php file and right after this function closes, add this function:


/**
* Adds monarch wherever you put the shortcode.
*/
function display_custom() {
$monarch_options = $this->monarch_options;

return $this->generate_inline_icons( 'et_social_inline_top' );;
}

Now go up to around line 119 and find this line:

add_shortcode( 'et_social_follow', array( $this, 'display_shortcode' ) );

Right below it add this:

add_shortcode( 'et_social_share', array( $this, 'display_custom' ) );

That’s it.

Now you can add your sharing buttons anywhere you want using the [et_social_share] shortcode.

To add it in your PHP, you can do this:

echo do_shortcode('[et_social_share]');

Enjoy!

BACKUP, CLONE & Restore WordPress With 1 Click!

If you use WordPress to blog, here is an awesome WordPress BackUp tool a friend showed me. This thing backs up everything… Posts, pages, images, plugins, all the settings, all of it!

I’ve been blogging for over 7 years and have always had this scary thought in the back of my mind, “What is it crashes, I don’t have any back ups”. I have looked into backing it up but nothing is convenient enough to stick to. The plugins out there are half-decent but not worth investing in.

When I got an email from a friend of mine that blogs a lot, to say the least, and he told me about this plugin, I was shocked at how awesome it is. So I am tellign everybody about it today. If you run WordPress, you need this plugin. At least do your self a favor and take a look at it. I am sure you will love it and will probably thank me.

Go there now, Backup Creator: http://bit.ly/xWDtfm

Yes, that’s my affiliate link. I will get a cut if you buy it. No reason to lose out on free money while helping people out. :)

~ Valik

Getting Posts By Tag or Category in WordPress

Usually when I need to get posts by tag or category in WordPress to use in a featured posts slideshow or some sidebar list, I have been going through a lot of steps to pull those posts. I found an easier way of doing it and so wanted to document it here. This example is used with a featured posts slideshow before the list of posts on the homepage. I am pulling the posts tagged “Featured” before the loop and to do that I am using the get_posts() function. Here is the code, it should be pretty self explanatory. Please leave comments if you have questions about it. By the way, I wrote a basic tutorial on search engine optimization for WordPress. Ok back to code.

<?php

// make sure you have your header in place
get_header(); 

// grab the posts you need, by tag or category
global $post;
$postsByTag = get_posts('tag=Featured&numberposts=6');

// now for each post do what you need
foreach($postsByTag as $post) {

 setup_postdata($post);

 echo '<a href="'. get_permalink().'">'. get_the_title().'</a><br />'.get_the_excerpt();

 // you can pull the thumbnail image for the posts using this
 $thumb = get_the_post_thumbnail($page->ID,array(652,458)); 

}

// then it continues into the regular loop
if (have_posts()) : while (have_posts()) : the_post();

?>

Before I go, one question for you:

How many custom WordPress Themes have you built?

Adding reCaptcha To A Custom Contact Form Page On WordPress

no-spam
Image credit: Madison Magazine

At first I thought this was going to be easy, just install the WordPress reCaptcha plugin and add a couple of lines to the form and that should do it. Once I was ready to go and actually do it, I could not find any info on teh web on how to do this, so after two hours of research and trial and error I found the answer. I hope this will help someone out there.

I am building a custom contact page with a PHP contact form on it. I need the reCaptcha to sit at the bottom of the form and keep Spammers out.

First we needed to go and register an account at reCaptcha.net and get the public and private key for the domain the reCaptcha is going on. Then download the reCaptcha library PHP file that will be including in the form processing code.
Continue reading “Adding reCaptcha To A Custom Contact Form Page On WordPress”

Huge Changes For My MoneyMasters WP Super Theme!

mmtheme

If you haven’t heard yet, I took my MoneyMasters Premium WP Theme off the market for a while to do some serious overhauling and a relaunch. Very exciting things coming up…

For one, I created a FREE Version of the theme that has a lot of the powerful customization and SEO options for everyone to use.

The other is I am dropping the price from $79.99 to $49.99 for the full version.  I want more people to be able to afford it, so I know at $49.99 this theme will be a steal.

Take a look at the MoneyMasters Premium Super WP Theme and let me know your thoughts.

Feel free to download the free version and give it a test drive. Here is a tutorial on Search Engine Optimization (SEO) for WordPress.

~ Valik

27 Stunning Premium Business WordPress Themes

There are lots and lots of WordPress themes out there and a lot of them are just that, themes, but once in a while you will stumble upon a work of art and functionality. Today, I’d like to share 27 stunning premium themes that I have found. These are not free themes, actually their price is considerably high but all for a good reason. The themes are highest quality and you will get that unique theme and nobody else will have that same one.

So enough yapping, let’s get to it.

1. Aperture Theme

aperture

2. Busy Bee

busybee

3. Open Air

openair

Continue reading “27 Stunning Premium Business WordPress Themes”