WordPress save youtube or vimeo thumbnail as featured image

How to save youtube or vimeo thumbnail as featured image of wordpress post.For a examaple if you add the video url as custom meta data or post content you need to get it’s video thumbnail and save it as featured image automatically.
This post is discussing how to save youtube vimeo thumbnail as featured image in wordpress post or page or custom post types.

Continue reading WordPress save youtube or vimeo thumbnail as featured image

Get store url of wordpress clipper theme

If you’re familiar with wordpress coupon site you may had use the wordpress clipper theme as parent theme.Also discounty theme is a child another theme use with clipper theme.So when we’re customize the theme you want to get store url using coupon ID/post ID.This post is showing how to get easily store url using post ID.
Continue reading Get store url of wordpress clipper theme

WordPress remotely publish post using XML-RPC

Today I’m going to show how to remotely publish post using xml-rpc of the wordpress.This is actually very simple and powerful.If you want to publish posts or pages without log into the wordpress admin panel you can use this method.First we’ll consider what is this XML-RPC and it’s usages.

Continue reading WordPress remotely publish post using XML-RPC

wordpress sort custom post type columns

When you’re creating custom post types into your wordpress site you can see it’s posts as list.But there is no option to sort each columns.You have to manually add this facility to do this.I’ll describe here very simply how to do this without any plugin.
Continue reading wordpress sort custom post type columns

WordPress create custom post types with tags and categories

If you’re working with wordpress sometimes you want to add custom post types with it’s tags and categories to add into admin panel.For a example, “News” custom post type.You can follow this tutorial guide to add unique custom post types with it’s tags and categories to admin panel.No errors,no tags and categories mixing with other post types.No usages of plugins.

Features

  • Unlimited Custom post types
  • No mixing with other post types
  • Creating unique tags and categories
  • No usages of plugins
  • Simple and efficient code
  • Customize display columns
  • Custom admin menu icon
  • Sort column by post name
  • Filter posts by categories

Now we’ll see how to add custom post type to wp admin panel.
-First you must go to the theme folder and open the functions.php file.If you’re using premium themes you can use custom-functions.php or theme-function.php.
-After that at the end of the file put the following piece of code.Here I’m using “News” custom post type.

 

Step-1

After add the above code you can see the changes as following.

custom post types

Further note:
If you want to add custom menu icon go to following link and select the icon.Then copy it’s name(Ex:-dashicons-format-aside) and put here.
Dashicons

Step-2

Main part is finished.Now we’ll add it’s categories.Note here,I’ll explain little bit mistake many user’s doing.
If you add following mentioned code, you can see categories mixing with other post type’s,default post’s categories.So DON’T USE Following code. ‘taxonomies’ => array(‘category’) ,// mixing with others.

This is the correct code.

 

Step-3

Now we have to do the customize columns as the following diagram.
custom post types columns

Add the following code to functions.php file.

 

Step-4

Filter news and sort by name.
To do that add this code.

 

Step-5

Adding Tags to Custom post type. You can add following code to add tags to News post types.No mixing with other post types.

Now you have implemented all codes and after that you can see custom post types with tags and categories,sorting,filtering functions.
custom post types all

Error fixing

May be when you visited to the category page you may not be seen the post related to that category. To fix this add the following code to function.php file.

Additional Notes

If you want to add more admin menu icons then add this code to functions.php file.

Follow my another post describing this.

Download full source code

WordPress find specific shortcodes from post & page contents

How do you find specific shortcode from the wordpress page or post contents? For a example if you are using “gallery” shortcode, you want to check that code if exist or not for some modifications.I wanted this for gallery shortcode if exist for some gallery width changes.So I found some codes and I have improved php codes and implementing here to you.
Continue reading WordPress find specific shortcodes from post & page contents

WordPress create custom post types/taxonomies

Custom Post Types are a new set of administrative options appearing along with the default post types such as Posts, Pages, Attachments etc. A Custom Post Type can store any type of information. It has a editor, media uploader and uses the existing WordPress table structure for ease in data management.

By default, WordPress comes with 3 taxonomies:post tag, categories and link categories. Essentially, a taxonomy is a way of classifying data. Continue reading WordPress create custom post types/taxonomies

WordPress create custom meta boxes

This post is explaining creating wordpress custom meta boxes/meta data in easy,secure & proper way.A post meta box is a draggable box shown on the post adding/editing page. Its purpose is to allow the user to enter information in addition to the main post content.

There are two types of meta boxes. Continue reading WordPress create custom meta boxes

WordPress get recent post except first 3 posts

How to check and get recent post 3 in wordpress? On another way it’s calling exclude posts.I’m going to explain this in 2 methods.First method is getting first 3 posts into an array. When we’re going to display the posts, checking current post ID if exist in that array. If exist continue the loop.If not exist then display the posts.Other method is passing parameter “offset”.
Continue reading WordPress get recent post except first 3 posts

wordpress publish a post from frontend without plugin

How to publish a post from frontend without plugin in wordpress? This is not a complex task and users can publish their own post without using a plugin.Post fields validations, error displaying and bootstrap html contents added and you have only add bootstrap css files.
Continue reading wordpress publish a post from frontend without plugin

WordPress Add Media Button not working

When you’re working with wordpress may be you have to face to this problem.This is a common issue in WordPress 3.5 version.When you going to create a new post or edit a post and if you click on “Add Media” button it is not working and nothing happened. If you updated wordpress this issue may be exist.The main reason is javascript/jquery conflicting.May be the Visual editor not working because of this issue.So I’m going to show how to fix this issue in few methods.

wordpress add-media-button-not-working
Continue reading WordPress Add Media Button not working

WordPress add custom field to registration form without plugin

I’m going to show how to add custom field to user registration form in wordpress.I checked through the internet to add this custom field and how to validate that field for values.But couldn’t find useful articles. So I decided to show simple guide to how to add custom field to user registration form and how to validate it for values from simple step to advanced steps.So special thing is you don’t have to use any plugins for this.

Continue reading WordPress add custom field to registration form without plugin

WordPress add custom sidebars to the site without plugins

I’m going to show you how to add custom sidebars to your theme without using any plugins.This is easiest way to add sidebars to your theme.Default in the wordpress theme there is one or two sidebar.In here I’m using a default theme of wordpress named “Twenty Twelve”. There are few steps you have to do.

Continue reading WordPress add custom sidebars to the site without plugins

wordpress widgets are not clickable

If you have wordpress blog sometime you faced to this error. All wordpress widgets are displaying properly.After clicked on the each widget’s options are not opening.Another issue is widgets are not displaying.Menu items are not displaying when mouse hover.And other error is can’t drag and drop wordpress widgets. So in this post is describing how to solve these issues.

There are the errors in the admin panel.

  • After clicked on the each widget’s options are not opening.
  • Can’t drag and drop widgets.
  • Menu items are not displaying when mouse hover.
  • Sometimes not saving data.

The reason is javascript/jquery conflicting.

How to fix these issues?

There are some methods to fix these issues.

Method-1

Disable all plugins and check it.If not success sign out again.If success, the reason is plugins conflicting.Enable one by one and detect the plugin and try to update it.

Method-2

If you installed cache plugins clear all cache with admin panel.If you minified javascript, disable and check with reloading page.

Method-3

Apply twenty twelve or twenty eleven theme and check.If success, the reason is in your current theme.Try to update or find the solutions.

Method-4

If you are not install firebug add-on, immediately install to the browser and press F12 key, click Console button and check if displaying javascript or some errors.
If displaying you can identify what the errors.

Method-5

Check the jquery library file is loaded into the admin panel.If not exist, add it.
Better way is add “Use Google Libraries” Plugin.Then lot of issues are fixing.
Download Use Google Libraries from here.

Method-6

1-Go to the root folder and open wp-config.php file.
2-Copy and paste the following script end of the file and save it.

3-Check the admin panel for issues.

Hope this will be help to solve these issues!

Cracking wordpress security plugins

If you are wordpress blog user,you must consider about the site security process. Otherwise your site may be hack or infecting malwares. So I’m going to explain some essential wordpress security plugins usages and how to crack them to get all features with premium features without paid to them. 😀

Continue reading Cracking wordpress security plugins

WordPress add contents to the page or post using hooks

How to add contents to the wordpress page or post using hooks.You can add before content or after content of the posts.Wordpress hooks are easy to handle and add contents without worrying.Mostly wordpress hooks are using to WordPress plugin developers.

Two types of hooks named “Actions and Filters”. Continue reading WordPress add contents to the page or post using hooks