Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts

Monday, March 16, 2015

How To Change “Enter Title Here” Text In WordPress ?



WordPress displays “Enter title here” placeholder text in the title field on the post screen where you create new posts. When we create custom post types, there is no default parameter to change this text. 

here’s a simple snippet which allows you to change “Enter title here” text in WordPress posts screen and custom post types’ screen.
Just drop the following snippet to your current theme’s functions.php file:

function change_title_text( $title ){
     $screen = get_current_screen();

     if  ( 'movie' == $screen->post_type ) {
          $title = 'Enter movie name with release year';
     }

     return $title;
}

add_filter( 'enter_title_here', 'change_title_text' );

That’s all!

Friday, March 13, 2015

Difference Between Filter and Action Hooks?

Action Hooks



Actions Hooks are intended for use when WordPress core or some plugin or theme is giving you the opportunity to insert your code at a certain point and do one or more of the following:

  1. Use echo to inject some HTML or other content into the response buffer,
  2. Modify global variable state for one or more variables, and/or
  3. Modify the parameters passed to your hook function (assuming the hook was called by do_action_ref_array() instead of do_action() since the latter does not support passing variables by-reference.)

Filter Hooks



Filter Hooks behave very similar to Action Hooks but their intended use is to receive a value and potentially return a modified version of the value. A filter hook could also be used just like an Action Hook i.e. to modify a global variable or generate some HTML, assuming that's what you need to do when the hook is called. One thing that is very important about Filter Hooks that you don't need to worry about with Action Hooks is that the person using a Filter Hook must return (a modified version of) the first parameter it was passed. A common newbie mistake is to forget to return that value!

Using Additional Parameters to Provide Context in Filter Hooks



As an aside I felt that Filter Hooks were hobbled in earlier versions of WordPress because they would receive only one parameter; i.e they would get a value to modify but no 2nd or 3rd parameters to provide any context. Lately, and positively however, it seems the WordPress core team has joyously (for me) been adding extra parameters to Filter Hooks so that you can discover more context. A good example is the posts_where hook; I believe a few versions back it only accepted one parameter being the current query's "where" class SQL but now it accepts both the where clause and a reference to current instance of the WP_Query class that is invoking the hook.


So what's the Real Difference?


In reality Filter Hooks are pretty much a superset of Action Hooks. The former can do anything the latter can do and a bit more albeit the developer doesn't have the responsibility to return a value with the Action Hook that he or she does with the Filter Hook.

Giving Guidance and Telegraphing Intent


But that's probably not what is important. I think what is important is that by a developer choosing to use an Action Hook vs. a Filter Hook or vice versa they are telegraphing their intent and thus giving guidance to the themer or plugin developer who might be using the hook. In essence they are saying either "I'm going to call you, do whatever you need to do" OR "I've going to pass you this value to modify but be sure that you pass it back."


In Short, if you look at the do_action() core function, it's very similar to the apply_filters() core function, with one very key difference: it does not return a value.

So what does this mean? actions are like filters, except an action does not return a value, so you cannot modify data. It shows that it was simple to create the WordPress' action mechanism by simply copying the filter mechanism, and not returning a value. Basically, all you can do with an action is simply execute a function without modifying some value.

Wednesday, July 23, 2014

10 Most Popular Free WordPress Slider Plugins

Finding the perfect slider for your site is by no means an easy task.

At last count there were 690 sliders in the WordPress Plugin Repository. Who’s got time to test every plugin?

Meta Slider

meta-slider
Stats From WordPress.org
4.8 out of 5 stars
Requires: 3.5 or higher
Compatible up to: 3.8.1
Last Updated: 2014-1-23
Downloads: 467,707
Meta Slider is by far the most popular slider available for WordPress, with a massive 467,707 downloads to date.
It comes with four jQuery sliders –Nivo Slider (responsive, 16 transition effects, four themes), Coin Slider (four transition effects), Flex Slider 2 (responsive, two transition effects, carousel mode), Responsive Slides (responsive, fade effect only).
Creating a new slider is simple – add your image, select which slider you want to use and the plugin will spit out a shortcode you can insert anywhere in your site.
There’s also a pro version of this plugin if you want to pay money for more features.

Easing Slider “Lite"

Easing Slider Lite
Stats From WordPress.org
4.4 out of 5 stars
Requires: 3.5 or higher
Compatible up to: 3.8.1
Last Updated: 2013-12-13
Downloads: 398,471
With almost 400,000 downloads, Easing Slider Lite is the second most downloaded slider plugin in the repository.
This lightweight plugin allows you to set the dimensions and duration of your slider and includes the option to make your slideshow responsive. There are two transition effects, fade and slide. Like many sliders, you will need to use shortcode to add your slider to a post or page.
You can only create one slider with this plugin, so if you want to have more than that in your site you should look elsewhere.

Smooth Slider

smooth-slider
Stats From WordPress.org
3.8 out of 5 stars
Requires: 3.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-9-10
Downloads: 356,672
Smooth Slider offers a content and image slideshow with a customizable background and slide intervals you can place anywhere on your site.
The plugin’s features includes a responsive design and six transition effects. It also support custom slider, category slider and recent posts slider. Template tags, shortcode and a widget are included.
I did try to use set up a new slider but the plugin crashed my site every time I tried to go into the plugin’s settings. I checked out Smooth Slider’s support page on the repository site and it seems other users with up-to-date versions of WordPress have also been having issues.

WOW Slider

wow-slider
Stats From WordPress.org
3.4 out of 5 stars
Requires: 3.1 or higher
Compatible up to: 3.5.2
Last Updated: 2014-1-27
Downloads: 218,249
Wow Slider is unusual in that you need to download a separate program, WOWSlider wizard, to create a slideshow. Once you’ve put together your slideshow, you can then upload it to the plugin. You’ll need to copy and paste a shortcode to insert your slider anywhere on your site.
The plugin’s website includes fairly comprehensive documentation to help you if you run into any problems.

vSlider Multi Image Slider for WordPress

vslider-multi-image-slider
Stats From WordPress.org
4.2 out of 5 stars
Requires: 2.7 or higher
Compatible up to: 3.3.2
Last Updated: 2012-4-25
Downloads: 194,017
vSlider allows you to display an unlimited number of image sliders on your site, though it makes me wonder, how many sliders is too many?
You can insert sliders into your site either with shortcode, a custom widget or by using it as a function in your theme.
The plugin comes with a helpful FAQ and a video tutorial that walks you through how to set up your first slider. There’s also a forum available if you run into any problems.

SlideDeck 2 Lite Responsive Content Slider

slidedeck-2-lite
Stats From WordPress.org
3.9 out of 5 stars
Requires: 3.3 or higher
Compatible up to: 3.8.1
Last Updated: 2014-1-9
Downloads: 173,667
SlideDeck is a popular and comprehensive plugin that offers advanced functionality if you’re after a feature-packed slider.
This lite version doesn’t include the full set of 14 content sources, like Facebook, NexGEN and Gallery that are available in the premium version.
Still, the lite version is feature-packed, allowing you to quickly create sliders from any content, such as images, posts and videos.

EasyRotator for WordPress - Slider Plugin

easyrotator-for-wordpress
Stats From WordPress.org
4 out of 5 stars
Requires: 2.8 or higher
Compatible up to: 3.8.1
Last Updated: 2013-12-20
Downloads: 157,150
EasyRotator promises that users “beautiful, responsive photo rotators and sliders to your WordPress site in seconds,” but it actually takes a bit of setting up. First you’ve got to install Flash software to create your slides – or rotators – on your local machine, which I admit I found annoying. Then you can create a new rotator from within the page or post editor. You can also use shortcode to insert a rotator in your site, or add a rotator to your theme using a function call.
After going to the trouble of installing the Flash program, it didn’t work when I tried to set up a basic slider from the Post Editor. After a bit of digging around, I discovered this plugin doesn’t work with Safari/Chrome.

Responsive WordPress Slider - Soliloquy Lite

soliloquy
Stats From WordPress.org
4.1 out of 5 stars
Requires: 3.3.1 or higher
Compatible up to: 3.8.1
Last Updated: 2014-1-6
Downloads: 151,001
Soliloquy is one of the more well-known sliders out there and for good reason – it’s simple to set up, you don’t need to download flash software to create and upload sliders or mess around with the settings. It just works.
After you’ve added your images, select your slider size, slider speed and hit “publish.” Then you’ll need to copy the resulting shortcode onto any page or post where you want the slider displayed.
While this is a lite version, it still comes with enough features to make it worth trying out.

Cyclone Slider 2

cyclone-slider-2
Stats From WordPress.org
4.8 out of 5 stars
Requires: 3.5 or higher
Compatible up to: 3.8.1
Last Updated: 2014-1-10
Downloads: 110,956
Cyclone Slider 2 takes sliders back to basics. It offers a straightforward plugin setup that display a simple image slider and includes options such as delays, dimensions and pause on hover.
The plugin supports image, YouTube, Vimeo, custom HTML and testimonial sliders. You can drag and drop to re-order your slides, and the sliders are responsive.
This plugin also comes as a pro version.

Responsive Slider

responsive-slider
Stats From WordPress.org
4.1 out of 5 stars
Requires: 3.3 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-24
Downloads: 89,618
Responsive Slider is a very simple slider plugin, which comes with few settings but makes up for it in easy of use.
Adding new slides is a snap and you can place them anywhere in your site with a shortcode, or into your theme with a function call.
The settings allow you to change the width and height of your slider, add a transition effect, a delay, animation duration and automatic start.
This plugin is for single sliders only, so if you want to set up multiple sliders on your site you should check out a different plugin.

15 Best WordPress Chat Plugins for Live Chat

The main focus of this article is live chat plugin which can be integrated on a WordPress website without much hassle. These live chat WordPress plugins will appear on the website wherever you want them to show. Initiating and engaging chat with your website clients to discuss or provide support, feedback offline or online is now much easier. Manage, organize your chat professional with WordPress plugins.

Click the chat option which is usually on the bottom right of the website and start chatting with senior webmasters or support technicians. Here you can find free WordPress chat plugins as well as premium codecanyon plugins which are not avoidable.

Formilla Live Chat – Free WordPress Chat Plugin

Install live chat to your wordpress site. Chat with your visitors with a clean and easy-to-use interface. No strings attached!
Demo|Source Free wordpress Formilla Live Chat

Free WordPress Live Chat by OggFlow

Live Chat by OggFlow is a customer support software and help desk suite (Live Chat, Social Media, Ticketing). Your first user is always free!
Demo|Source Live Chat by OggFlow

Free Live Chat Software by HelpOnClick

This plugin installs HelpOnClick’s live chat widget on your WordPress website to allow real time chat with your website visitors.
Demo|Source live chat software free wordpress plugin

Wpmudev – Free WordPress Live Chat Plugin

Add chat to your blog. Chat with your readers and let them chat with each other. Start communicating! Bring live, two-way chat to your site. Host your own live chat sessions, interact with your visitors and boost your sales without needing any third party javascript or other code – works great with BuddyPress and Multisite too.
Demo|Source  best stand-alone live chat WordPress plugin

Quick Chat

Self hosted WordPress chat plugin supporting private chat, chat rooms, avatars, user list, words filtering, smilies, caching plugins and more.
Demo|Download quick chat

Live Chat – Casengo

Live Chat from Casengo is Customer Support Software from the Cloud, First User is Always Free. The Casengo Live Chat plugin allows you to add live Chat to your blog or website quickly and easily.
Shots|Download casengo

Free Live Chat by Tidio Elements

Meet Tidio Live Chat – a totally free chat for your website. No logging in, no signing up – integrates with your website in less than 20 seconds.
Shots|Download livechat free

WordPress Live Chat Plugin for Sales and Support

We simply use Ajax technique instead of Web Sockets. Because it’s pretty straightforward and works even on Internet Explorer. Also, you probably don’t need any server modifications for this plugin. It works with native PHP 5 server and WordPress fine.
Demo|Source WordPress Live Chat Plugin for Sales and Support

Chatty – Simple Live Chat Plugin for WordPress

A simple standalone WordPress Live Chat plugin. Unlimited numbers of chats per website (both unique and shared)!
Demo|Source Chatty - Simple Live Chat Plugin for WordPress

WordPress 1-2-1 Live Chat Plugin

Industrial strength 1-2-1 live chat software configured into a WP Plugin. It allows you to add 1-2-1 live chat on your WordPress powered site. And it’s extremely simple to set up.
Demo|Source Wordpress  Live Chat Plugin

In Chat – WordPress Plugin for users to chat

This plugin allows your registered users to chat with each other. Online users are detected and shown in different color, making people to know who is online. This plugin do not requires any third party plugins or configurations, hence can be run on any common php & mysql server.
Demo|Source In Chat

Rhino Live Support – Live Chat

Provide premium customer service by chatting live with your customers and give direct assistance where it’s needed – at any time. Unlimited operators and departments, invite website visitors, transfer customers, IP-Location, advanced statistics and much more.
Demo|Source Rhino Live Support - Live Chat

Simple Simon Live Chat WordPress Plugin

I decided to put a Simple Live Chat Plugin together for the every day WordPress website or blog. If you have an online business or cart where you are in front of your computer most of the day, why not add another layer to your business by adding a Simple Live Chat?
Demo|Source Simple Simon Live Chat WordPress Plugin

Kruk Chat For WordPress

Kruk chat is the simplest way to provide your wordpress or woocommerce visitor a “live chat support” and manage it via mobile app and web .
Demo|Source Kruk Chat For WordPress

WordPress Live Chat with Web- & Windows Clients

The ClientEngage Visitor Chat for WordPress is a fully-featured real-time chat for your WordPress websites. A clear and simple web-based administration allows you to conveniently chat with your visitors.
Demo|Source ClientEngage Visitor Chat for WordPress

2014 Top 40 WordPress Plugins

WordPress plugins list is here! If you want your WordPress website to be at the top of the game then here are my latest suggestions of “must have” plugins to help you get there. All of these plugins have been used on SalesBlog! from this exhaustively researched list at one time or another.


Shop Amazon - Get the New Fire Phone

Note: Chris Lott and lottspace.com are not responsible for any issues with your website or other plugin incompatibilities after trying the below plugins. Always make a backup prior to using a new plugin.

1.) .html on PAGES: Adds .html to pages.
Version 1.1 | By IntroSites | Visit plugin site

2.) Akismet: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from comment and trackback spam. It keeps your site protected from spam even while you sleep.
Version 2.5.6 | By Automattic | Visit plugin site

3.) All in One SEO Pack: Out-of-the-box SEO for your WordPress blog.
Version 1.6.15.2 | By Michael Torbert | Visit plugin site

4.) Antispam Bee: Easy and extremely productive spam-fighting plugin with many sophisticated solutions. Includes protection again trackback spam.
Version 2.5.1 | By Sergej Müller | Visit plugin site

5.) Backup: Back up your WordPress website to Google Drive.
Version 2.2 | By Sorin Iclanzan | Visit plugin site

6.) Checkbox Captcha: This small plugin adds a checked checkbox to the comment form, disabling the submit button. It is less intrussive than an actual captcha and better protects against spam.
Version 1.0 | By Andrei Sangeorzan | Visit plugin site

7.) Clean Options: Finds orphaned options and allows for their removal from the wp_options table.
Version 1.3.2 | By Mittineague | Visit plugin site

8.) Contact Form 7: Just another contact form plugin. Simple but flexible.
Version 3.3.1 | By Takayuki Miyoshi | Visit plugin site

9.) Contextual Related Posts: Displaying a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
Version 1.8.3 | By Ajay D’Souza | Visit plugin site

10.) Delete Me: Allow specific WordPress roles to delete themselves.
Version 1.1 | By Clinton Caldwell | Visit plugin site

11.) Drop Caps: Generate the code for drop caps.
Version 2.1 | By Thomas Milburn | Visit plugin site

12.) Email Immunizer: Protect email addresses and mailto links on your blog from email harvesters.
Version R1 | By Kaf Oseo | Visit plugin site

13.) Emu2 – Email Users 2: Allows admins to send an e-mail to the single, multiple group of blog users. You can extract all e-mail addresses as well for external mass mailings. Credits to Vincent Prat http://www.vincentprat.info
Version 0.83b | By Juergen Schulze, 1manfactory@gmail.com | Visit plugin site

14.) Exclude Pages from Navigation: Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any “consumer” side page listings, which may not be limited to your page navigation listings.
Version 1.92 | By Simon Wheatley | Visit plugin site

15.) GD Press Tools: GD Press Tools is a collection of various administration, seo, maintenance and security related tools that can help with everyday blog tasks and blog optimizations.
Version 2.6.0 | By Milan Petrovic | Visit plugin site

16.) Get Login: Adds ‘Log In’, ‘Log Out’, ‘Register’ and ‘My Profile’ respectively to navigation listed using “wp_list_pages” and when the items are clicked a user is redirected to the respective wp-login.php pages.
Version 1.0 | By Matthew Praetzel | Visit plugin site

17.) Google Analytics Dashboard for WP: This plugin will display Google Analytics data and statistics into Admin Dashboard.
Version 4.2.3 | By Alin Marcu | Visit plugin site

18.) Google XML Sitemaps: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog.
Version 3.2.8 | By Arne Brachhold | Visit plugin site

19.) Linked Image: Links the first image in your post to the post itself.
Version 1.0 | By Wessley Roche | Visit plugin site

20.) Lite Cache: A lite and efficient cache.
Version 2.2.7 | By Stefano Lissa | Visit plugin site

21.) Login Logo: Drop a PNG file named login-logo.png into your wp-content directory. This simple plugin takes care of the rest, with zero configuration. Transparent backgrounds work best. Crop it tight, with a width of 312 pixels, for best results.
Version 0.7 | By Mark Jaquith | Visit plugin site

22.) Meta Slider: 4 sliders in 1! Choose from Nivo Slider, Flex Slider, Coin Slider or Responsive Slides.
Version 2.5-beta2 | By Matcha Labs | Visit plugin site

23.) nrelate Flyout: Easily allow related posts to flyout from the sides of your website.
Version 0.52.6 | By nrelate and SlipFire | Visit plugin site

24.) PHP to Page: Keep your PHP and WordPress seperate, using the shortcode [php-to-page] you can include PHP files in your pages.
Version 0.3 | By Kerry James | Visit plugin site

25.) Post Layout: Adds HTML o javascript code before, after or in the middle of the content of pages or posts without modify the theme. For any problem or question write me: satollo@gmail.com.
Version 2.1.4 | By Satollo | Visit plugin site

26.) Redirection: Manage all your 301 redirects and monitor 404 errors
Version 2.2.13 | By John Godley | Visit plugin site

27.) SABRE: Simple Anti Bot Registration Engine
Version 1.2.2 | By Didier Lorphelin | Visit plugin site

28.) SEO No Duplicate: This plugin helps you manage your search engine duplicate content, by setting your post page’s canonical to the permalink.
Version 0.5.0 | By Thaya Kareeson | Visit plugin site

29.) SSQuiz: With this plugin you can make quizzes really fast. Add questions/quizzes, rearrange questions, edit answers, insert multimedia in questions, – all of this can be done on single page within several seconds.
Version 1.02 | By SSVadim | Visit plugin site 

30.) Shareaholic | share buttons, analytics, related content: Whether you want to get people sharing, grow your fans, make money, or know who’s reading your content, Shareaholic will help you get it done.
Version 7.0.7.0 | By Shareaholic | Visit plugin site

31.) Subscribe to Comments Reloaded: Subscribe to Comments Reloaded is a robust plugin that enables commenter to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenter can use to unsubscribe to certain posts or suspend all notifications.
Version 2.0.2 | By camu | Visit plugin site

32.) Thank Me Later: Automatically send a ‘thank you’ e-mail to those who comment on your blog. This plugin engages the visitor by reminding them to check back for responses or new blog posts. The plugin is highly configurable with multiple messages, variable delay and restrictions.
Version 2.1 | By Brendon Boshell | Visit plugin site

33.) Tweet old post: This plugin helps you to keeps your old posts alive by tweeting about them and driving more traffic to them from twitter. It also helps you to promote your content. You can set time and no of tweets to post to drive more traffic.
Version 4.0.3 | By Ajay Matharu | Visit plugin site

34.) User Avatar: Allows users to associate photos with their accounts by accessing their “Your Profile” page that default as Gravatar or WordPress Default image (from Discussion Page).
Version 1.4.11 | By Enej Bajgoric / Gagan Sandhu | Visit plugin site

35.) User Role Editor: It allows you to change/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
Version 3.8.2 | By Vladimir Garagulya | Visit plugin site

36.) WordPress Access Control: This plugin is a powerful tool which gives you fine grained control over your pages and posts (and custom post types), allowing you to restrict a page, post, or custom post type to members, non-members, or even specific roles. You can customize how these pages and posts show up in search results, where users are directed when they visit them, and much more. You can even make your entire blog members only!.
Version 3.1.4 | By Brandon Wamboldt | Visit plugin site 

37.) WP Auto Tagger: Automatically finds tags based on your post content.
Version 1.3.3 | By iDope | Visit plugin site

38.) WP Hide Dashboard: A simple plugin that removes the Dashboard menu, the Personal Options section and the Help link on the Profile page, hides the Dashboard links in the toolbar menu (if activated), and prevents Dashboard access to users assigned to the Subscriber role. Useful if you allow your subscribers to edit their own profiles, but don’t want them wandering around your WordPress admin section. Note: This version requires a minimum of WordPress 3.4.
Version 2.2 | By Kim Parsell | Visit plugin site

39.) WP PHP widget: WP PHP widget adds a new widget called PHP Widget, which will allow you to include PHP code, you can have Text, HTML, Javascript, Flash and/or PHP code ,wordpress template tags as content or title in this widget. So, as long as you want, it can do everything, that is grateful.
Version 1.0.2 | By wpxue | Visit plugin site

40.) WPSP – Terms of Use: Show the Terms of Use of the website on the registration page.
Version 1.0 | By WP Simple Plugins | Visit plugin site

41.) WPtouch Pro: WPtouch Pro helps you build a rich mobile theme for your site tailored for Apple iPhone & iPod touch iPad, Google Android, Blackberry OS6+ and other touch mobile devices.
Version 2.8.1 | By Dale Mugford & Duane Storey (BraveNewCode) | Visit plugin site

Monday, July 14, 2014

Beginner Tips For Getting Started with WordPress Development

One of the advantages that's often associated with building for WordPress is its low barrier to entry, and although this isn't altogether false, it also makes it intimidating for anyone who is looking to truly get started in WordPress and struggled with knowing how - or where - to get started.
In fact, we're often asked various tips, ideas, and practical things that new developers can do in order to get their feet wet WordPress when they're just getting started. In an attempt to provide a reference for this often-asked question, I thought it would be worth drafting up a few points worth sharing the next time that this question comes up.
With that said, here are five suggestions that I recommend (in no particular order):

One of the number one things that I - along with peer WordPress developers are asked - are how to do certain complex tasks right from the beginning. For example: How do I introduce frontend editing into WordPress?
This answer to this particular question can get complex very quickly.
For example, this assumes that you're comfortable with the TinyMCE editor, the JavaScript and CSS that's included  with it, PHP necessary to post back to the server and to properly handle the data that's being sent back and forth between the server and the client, the APIs necessary to handle revisions, serialization, validation, and more.
It's a lot, isn't it?
To that end, I always recommend that new developers begin with something small in mind, then grow their idea from there. When doing that, natural learning is bound to occur and you'll learn the things necessary that will allow you to accomplish more complex tasks.

This is something that developers - regardless of their level of skill - hear often. We're told to read other people's code, read other people's books, and follow along development with other projects.
And because it's applicable to developers of all skill levels, it's applicable to beginners, as well.
The nice thing is that, in the case of WordPress, the source code and all associated projects are open source, and thanks to websites such as GitHub, it's relatively easy to find WordPress and associated projects available for study.
The challenge with doing this, though, is knowing where to start, right? I mean, it's difficult to simply just into a function and begin tracing it's execution. So how do we actually start with something and then work forward?
There are a number of strategies for doing this, one of which I've found to be relatively powerful regardless of the feature that you're dealing with: Pick one aspect of WordPress, say the login screen, and look for part of the code in the WordPress source.
This is easy to do: After all, we have the markup visible in our browsers and the strings visible on the screen. Simply doing a "Find" in the WordPress source code will get you started somewhere along the path.
Next, trace the code that you see. Set breakpoints to debug as data is passing through it, try changing it to see if you can bend it to do something different than what it normally does.
Typically, breaking something and restoring its functionality is a fantastic way to grok how something works so that you can more easily understand how it's designed, how to implement something similar in the future, and/or how to take advantage of the relevant APIs.

You've likely read it here on Tuts+ before, and this isn't the last time that you'll read it again: One of the most important things that you can do as a WordPress developer is to understand the WordPress Coding Standards.
After all, the purpose of coding standards is in place to make sure that the code that's being written more or less looks the same regardless of who has written it.
Some people abide by the standards, some do not. If you opt not to do so - and that is a prerogative that the developer has - then so be it; however, if you opt to do so, then you're going to be writing code that's more easily readable by those who follow the standards, build products, and so on on top of WordPress.
The thing is, there are standards for PHP, JavaScript, HTML, and CSS. It's a lot to learn, but it's worth it. The code you write will read better, and will be easier to follow by those in the economy that are constantly working to work on WordPress or work on other things for WordPress.

This particular pointer is one that I don't believe we talk up enough: Meetups are fantastic and are so for a number of reasons.
  1. You get to meet like-minded people who are curious, interested, and passionate about the same platform you are.
  2. You have the opportunity to learn from people who are further down the line and able to work, and thus teach, on more extensive topics that you are.
  3. You have the ability to practice your speaking skills in front of other people should you opt to present to them.
  4. You have the ability to get help with your project, your code, or any other questions that you have.
And this isn't just left to meetups in the local area. WordCamps are fantastic resources for anyone who is interested in anything from just getting into blogging and getting WordPress setup to those who are looking to build an entire business around the application.
In short: Don't forget to get out of the house and interact with those in your "offline community" just as much as you do (well, at least to some degree ;) as your "online community."

Yes - this is yet another tip about reading. As far as blogs are concerned, there has never been a better time to be a part of the WordPress economy.
Right now, there are a number of different how-to sites, news sites, tutorial sites, developer sites, designer sites, and so on all of which offer a valuable, unique perspective on exactly what it involves and what it requires in order to be a WordPress developer.
Spend the time finding and reading the blogs that are most interesting to you. On top of that, if they offer code, try to trace it and understand it. Drop it in your IDE and work on improving it, adding something to it, changing it, and so on.
Hop into a discussion in the comments or chat with the authors via email about the code they've shared. Even if you don't feel like participating in the discussion, at least lurk in the comments and track along with it. You can learn a lot just by following the conversation of other people.

Honestly, these are just five quick tips to help you get started.
If you're really up for jumping into the deep end of the pool, then I also highly recommend following Trac and the associated emails that go out. It really keeps you in the loop as to what's going on in core, as well as what's happening with some of the other peripheral features of WordPress.
There are plenty more and I've love for you guys to voice your own suggestions in the comments so that we have a healthy collection of tips for our fellow readers - beginners or not.
So have at it: What are your suggestions?

Saturday, March 15, 2014

How to Create Custom Texonomies in Wordpress ?

For Creating Custom Texonomies in Wordpress Have Function
register_taxonomy () Function

Example Code : Below PHP Code Will Create genre texonomy in Wordpress


<?php
add_action( 'init', 'create_book_tax' );

function create_book_tax() {
 register_taxonomy(
  'genre',
  'book',
  array(
   'label' => __( 'Genre' ),
   'rewrite' => array( 'slug' => 'genre' ),
   'hierarchical' => true,
  )
 );
}

Friday, January 31, 2014

Wordpress - How to Create New Custom Widget ?

How to Create New Custom Widget ?

 

Standard Practice to Create Widget 

/***Widget for Welcome Box *********/
class Welcome extends WP_Widget {

    /**
     * Sets up the widgets name etc
     */
    public function __construct() {
        // widget actual processes
        parent::__construct(
            'welcome_user', // Base ID
            __('Welcome User', 'text_domain'), // Name
            array( 'description' => __( 'Shows Welcome Message if User is Logged In', 'text_domain' ), ) // Args
        );
    }

    /**
     * Outputs the content of the widget
     *
     * @param array $args
     * @param array $instance
     */
    public function widget( $args, $instance ) {
        // outputs the content of the widget
        if(is_user_logged_in())
        {
            $objCurrentUser = wp_get_current_user();
            $strNiceName = $objCurrentUser->data->user_nicename;
        ?>
            <div class="welcome_text">
                <?php echo __('Welcome '.$strNiceName); ?>, 
                <a href="<?php echo wp_logout_url(get_option('siteurl')); ?>"><?php echo __('Log Out'); ?></a>
            </div>
        <?php
        }
    }

    /**
     * Ouputs the options form on admin
     *
     * @param array $instance The widget options
     */
    public function form( $instance ) {
        // outputs the options form on admin
    }

    /**
     * Processing widget options on save
     *
     * @param array $new_instance The new options
     * @param array $old_instance The previous options
     */
    public function update( $new_instance, $old_instance ) {
        // processes widget options to be saved
    }
}
add_action('widgets_init', 'fnWelcome');
function fnWelcome(){
    register_widget( 'Welcome' );
}
/********** END **********/

Another Way to Create Widget 

register_sidebar_widget(<Widget Title>, <your Custom function name>);

 

Copyright @ 2013 PHP WORDPRESS MAGENTO .

Designed by Kcon Technosoft