Questions and Answers WordPress Plugin

With “Questions and Answers WordPress Plugin” can get questions from contact form 7 and make answers.

with this WordPress plugin can get mail from your chosen contact form and make it like question and answer.

When somebody send you mail from this chosen contact form, you have mail and this mail is in new posts Questions. And in every one mail you can write answer and publish.With publish the plugin send auto answer to this person witch send you question.

Here is demo

Questions and Answers WordPress Plugin is for use with contact form 7

You can get this plugin here

Events Calendar Plugin for WordPress

Events Calendar Plugin for WordPress – This is plugin for wordpress witch shows events in calendar.

We have new posts named Events. And two new taxonomies for different type events.

In plugin we have two shortcodes for display what we need.

First one is for widget display calendar with events.

Second one is with option to display calendar, from what taxonomy to display posts and last thing is for from what term to display posts.

here click you can view the page with shortcode for widget

here click you can view the page with shortcode for display posts with calendar.

You can get this plugin here

How to force download file in WordPress

Here is piece of code for how to force download file in WordPress

$file = $download['link']; //this is url of file - http://yoursitename.com/.../.../yourfile

$file_location = $_SERVER['DOCUMENT_ROOT'] . substr($file, strpos($file, '/wp-content')); // this is real path /var/www/....

header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . basename($file));
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file_location));
readfile($file_location);
exit();

 

 

How to create custom social share buttons

How to create custom social share buttons

Facebook:

http://www.facebook.com/share.php?u=[URL]&title=[TITLE]

Twitter:

http://twitter.com/intent/tweet?status=[TITLE]+[URL]

Pinterest:

http://pinterest.com/pin/create/bookmarklet/?media=[MEDIA]&url=[URL]&is_video=false&description=[TITLE]

Google+:

https://plus.google.com/share?url=[URL]

Linkedin:

http://www.linkedin.com/shareArticle?mini=true&url=[URL]&title=[TITLE]&source=[SOURCE/DOMAIN]

After this I use a this html code:


<a class="share" href="some of upper code">your image</a>

And the javascript:


jQuery(document).ready(function ($) {

    $('a.share').click(function () {
        return !window.open(this.href, "pop", "width=600,height=600");
    });

});

I use this for project: beatsbydre