Posts Tagged ‘Tutorials’

How to Solve WordPress Error: Warning: Cannot modify header information – headers already sent by()

Sometime when you are trying to modify you theme file or try to write an code entry, just in case you left empty space in your theme file  and chances are you have messed up your wp-config.php leaving some unnecessary spaces inside.

You get a warning message on your browser that says:

Warning: Cannot modify header information - headers already sent by (output started at

If you ever run across this error (or warning) in your WordPress with this message, Here is the simple solution for that:

Reason and Solution:

The reason behind this error may be there are spaces, new lines, or other garbage before an opening <?php tag or after a closing ?> tag, typically in wp-config.php. This error can be occur due to some other files too. So carefully check the error massage because it will list the specific file name. To overcome this error please follow the steps below.

  1. Download the wp-config.php or file mentioned in the error message.
  2. Open that file with your favourite editora or in plain text editor.
  3. The only thing you need to do is to clear all spaces before “<?php” and after “?>

In case above given  solution do not solve your problem, than checkout these guide lines.

Check the encoding of the file and save .php file under ASCII format . If the file is encoded as UTF-8 with BOM (Byte Order Mark), the BOM is seen as a character which starts the output, so make sure the first 3 bytes Byte Order Mark is deleted.

Other issues that might cause that error are you may be using function wp_ redirect() for redirection or trying to use a header redirect after the header that error message will show up. So better use javascript redirection if needed.

There is well explained interpretation about this error message on WordPress FAQ_Troubleshooting as follow:

If the error message states: Warning: Cannot modify header information - headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of wp-login.php is the victim. It is being affected by the excess whitespace at line #34 of wp-config.php.

If the error message states: Warning: Cannot modify header information - headers already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/wp-admin/post.php on line 569, then the problem is at line #8 of admin-header.php, not line #569 of post.php. In this scenario, line #569 of post.php is the victim. It is being affected by the excess whitespace at line #8 of admin-header.php.

At the end I would advice you to make a backup of any files you edit.

How to Hide or Show Widgets on Certain WordPress Pages, Posts and Categories

Sometime we have to hide or show widget on certain Pages, Posts or Categories  to show up different content,  affiliate ads or a poll on particular page or a category.  There are codes for these requirements on WordPress conditional tags, But  I found excellent WordPress plugins named Widget Logic and Widget Context that had the ability to hide or show widgets on your WordPress blog.?

Here are some tip to add some logic to the widgets that are used on your WordPress blog. These functions of this plugin are from the WordPress conditional tags.

1. Widget Logic

Widget Logic lets you control on which pages widgets appear. It uses any of WP’s conditional tags. It also adds a ‘widget_content’ filt

  1. widget-logic screenshot 1The ‘Widget logic’ field at work in standard widgets.
  2. widget-logic screenshot 2The widget_content filter and wp_reset_query options are at the foot of the widget admin page. (Both are off by default.)

One of my friend from Bloggermint  had well explained to make post pretty helpful and have added some common tags that hides or shows widgets and here these are:

is_single() to display the widget only on single pagesis_home() to display the widget only on home page

is_single(12) to display the widget on the post ID 12. The post ID is nothing but a unique number that was allocated to a blog post. So how to find the post? Simple one of my fellow blogger have blogged about it, just head over there.

!is_home() to display the widget on all the places except the homepage.

strpos($_SERVER['HTTP_REFERER'], “google.com”)!=false to display the widget for visitors who comes through Google. You can try the same step to replace Google.com with Facebook.com if you want to have a greet message for Facebook users.

is_single(‘Blogger Tips’) to display the widget on the post titled Blogger Tips. This indirectly helps you in adding a suitable affiliates ads for certain pages.

is_page(‘contact’) to display the widget only on a particular page contact. You can change the value “contact” to any page name of your wish.

is_category(array(5,9,10,11)) to display the widget only for certain category classified by category numbers*. You can even use single category numbers to hide or show widgets.

is_user_logged_in() to display the widget only for logged in users.

Download

2. Widget Context

Show widgets in context – only on certain posts, front page, category or tag pages etc. Widget Context allows you to specify widget visibility settings.

For news and updates regarding this plugin, check www.konstruktors.com

  1. widget-context screenshot 1Widget Context settings added at the end of every widget settings

There is an excellent video about this plugin on WordPress Tip of the Day “Hide or Show Widgets on Certain Pages Using the Widget Context Plugin

Download

Display Widgets Only on Certain Pages
Hide/Display/Show Widgets/Gadgets in Home/post/static/archive Blogger Pages
How to show or hide a widget on certain pages of your blog

How to Fix – WordPress IO Error uploading Images

There are a few different reasons for this error to occur. When I update the flash player to 10.2.152.26 version, and WordPress 3.1 flash uploader shows IO error. I think other WordPress users have encountered this issue. In the following simple solution, I’ll show you what I did to address the problem and get my WordPress Image uploads to work.

Simplest Solution 1:

There is one Simplest Solution: Do not use Flash uploader. Use Browser Uploader. So I tried that instead of the original Flash upload thing and I was able to upload my pictures. Hope this works for anyone else who’s getting this error!

Other Solutions:

There are more solution for this error. You can find them on following Links:

IO Error Uploading Images WordPress:
He explain how to Uninstall Flash Player Plugin to resolve this issue. I tried this one and it is very helpful.

WordPress IO Error and How to Fix It:
This explanation is not for MultiSite WordPress installation.

WordPress 2.5 Image Upload Error [WordPress Fix]
You have to Insert the script into .htaccess file.

WordPress Hooks Database, Resources and Tutorials for Plugin Developers

The WordPress hooks database, which was created and is supported by Adam Brown, is the essential resource for discovering hooks in WordPress. Adam R Brown built a system that digs through all WordPress core files and extracts every action and filter hook that exists in WordPress. He has been indexing these values since WordPress 1.2.1 and updates the hooks database with each new major version of WordPress. (Professional WordPress Plugin Development)

One of the best features of the hooks database is you can view all new hooks added in each version of WordPress. As a plugin developer, hooks are one of the most powerful features that you can use when creating plugins in WordPress. Clicking any hook name produces a hook detail screen showing where the hook is defined in the WordPress core code. To visit the hooks database visit:

WordPress Hooks Database


Essential Guides and Resources for Plugin Developers:

What makes WordPress so popular is that it’s free, open source, and extendable beyond limits. Thanks to a powerful, architecturally sound, and easy-to-use plugin system, you can customize how WordPress works and extend its functionalities. There are already more than ten thousand plugins freely available in the official plugin repository, but they won’t suit all your needs or client requests.

WordPress plugin development requires a little bit of personal initiative. Get ready to jump in and teach yourself. But where should you start? I have  prepared a list of the most essential resources for those who are new to writing plugins.

Creating a Custom WordPress Plugin From Scratch

This tutorial is extremely thorough, beginning with the file structure of a plugin. It walks you through integrating it with actions run by its frame and creating a configuration panel for site administrators. Download the source code and follow along as you build a simple plugin.

View Tutorial

Free e-Book: How to Write a WordPress Plugin

Very Useful ebook for WordPress plugin developers. This twelve part series illustrates the process from creation of a plugin, right through to promoting it. Well worth working through if you have the time!

Free Download

How to Build a WordPress Plugin

In this tutorial you will build a dashboard widget for active plugins, which is a great starting point for learning how to interact with WordPress actions and filters. This tutorial is very much a hands-on experience for building plugins. It’s very well-illustrated and will walk you through each step.

View Tutorial

WordPress Hook Sniffer

WordPress Hook Sniffer is a plugin for plugin developers that helps determine the sequence in which action and filter functions are fired. This tool will save you tons of time once you have a decent understanding of action and filter functions.

Download Plugin

WordPress Hooks, Barbs, and Snags

This tutorial was written by Jeff Jayre, the developer of the WordPress Hook Sniffer. It will help you learn how to interpret the output from the Hook Sniffer so that you can use it more efficiently in plugin development.

View Tutorial

Create a Universal Slider Manager in WordPress

In this video tutorial you will be learning how to create a very basic slider manager in WordPress. You can use the technique that you will learn from this tutorial to create more powerful slider managers for your WordPress themes or even plugins as I did for both of my themes on ThemeForest Space & Xero. Enjoy!

View Tutorial

phpxref

phpxref is a resource based on the WordPress trunk. It’s hosted by one of the lead developers for WordPress and is updated every night. Each file included in the trunk has a basic explanation of what it does and will help you to track down how things get executed and called.

View Resource

A Crash Course in WordPress Plugin Development

This tutorial includes a screencast, source code, and a step-by-step guide for creating your first WordPress plugin. It’s very easy to follow and an excellent resource for beginners.

View Tutorial

Advanced and Hidden WordPress APIs by Andrew Nacin

This resource is a collection of the slides from Andrew Nacin’s WordCamp Mid-Atlantic presentation on advanced WordPress APIs. The article links to all of the resources that he recommends in the presentation. You’ll find this resource to be more valuable after you’ve already completed some beginner tutorials.

View Tutorial

Writing a Plugin – WordPress Codex

The WordPress Codex will always be one of the best resources you have for learning about plugin development. This page will help you to become acquainted with the standard plugin information, licensing, and the basics for programming your plugin. You’ll also find many links to more helpful information that expands upon the each section.

View Codex

Top 10 Most Common Coding Mistakes in WordPress Plugins

This is an excellent article by Ozh that will help you to avoid many of the common pitfalls. If you have already been developing plugins or if you simply want to avoid starting any annoying habits, be sure to check out this article.

View Tutorial

How To Design And Style Your WordPress Plugin Admin Panel

An advanced tutorial on how to style your WordPress plugin settings panel.

View Tutorial

Create a Plugin with its Own Custom Database Table

A tutorial covering the creation of a plugin which has its own database table. Follow this tutorial if you want to learn how to validate a database table if your plugin is writing entries to it.

View Tutorial

WordPress Plugin Development Tips And Tricks

A very handy article for WordPress plugin developers about some useful tips and tricks.

View Tutorial

Your First WordPress Plugin

This screencast shows you how to make a very simple plugin which will replace foo with bar. A beginner’s guide from Mark Jaquith, who is a core developer for WordPress.

Click here to watch

WordPress Plugin API

The WordPress codex offers a great introduction to Hooks, Actions and Filters. Read this guide after reading the Writing a Plugin section. This is the official documentation of the API (Application Programming Interface) hooks available to WordPress plugin developers.

View Codex

Digging Into WordPress

by chriscoyier

There is much to learn about the World’s most popular publishing platform. Digging into WordPress is nearly 450 pages of taking you from your first steps of learning about WordPress all the way through maintaining a site throughout the years.

Live Preview | Download

Rockstar WordPress Designer

by rockablepress

Theme Like a Professional!

Managing web content has always been tricky, but with WordPress, any web designer can have a flexible, free and powerful CMS to use not just on blogging projects, but on all sorts of websites. In How To Be a Rockstar WordPress Designer you will learn step by step how to take a straight HTML site and power it with WordPress.

Live Preview | Download

How to Add TrackBack URIs in WordPress blog post

For building a relationship with other blog than trackbacks and Pingbacks are an excellent way to build links and ultimately these links will bring traffic to your blog.

What Is Trackback?

Trackback is a way to notify a website or blog when you publish an entry that references it.

WordPress.com: “Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs they’ll be notified automatically using pingbacks, no other action necessary.”

As well as having links to other blogs in your post, you might also want to add TrackBacks to other posts. If the other blog supports TrackBack, a TrackBack URI will be displayed somewhere on the blog post. Often, this URI is not visible unless just that one posting and its comments are displayed. This is because TrackBacks are meant to add a comment or comment-like entry to that other blog posting.

How To Locate The Trackback Link

Mostly you can find tackback after the blog post content and before  the comments.

As you can see I have allowed the trackback and these links appearing after the comment list as follow:

How To send a Trackback

First of all copy the URI of  reference post  where you want to send trackback and Before publishing your blog post, you’ll need to tell WordPress to send your trackback notices.  Back on your blog, scroll down from the editor to the Trackbacks module and paste that trackback URLs into the box next to “Send Trackbacks To.”

Successful trackbacks and pingbacks usually appear within moments of publishing your blog entry, but remember that trackbacks and pingbacks can be moderated or disabled by the blog owners.

You are welcome to use this blog entry to test your trackback/pingback functionality, however, please do not spam.

Reference and Other Useful Resource:

apfeltalk. Linkback
WordPress Trackback Tutorial

How to Submit & Optimize WordPress Blog Post for SERPs

Almost every day when I visit new blogs on the internet I spot duplicated content. Anyone can build a free blog on Blogger or on WordPress.com. But do you know how to optimize your blog so it ranks well in the Search Engine Results Page (SERPs)?

Today going to tell you fundamental tips, which must help you to get you blog ranked well in the SERPs, because these are the first step to getting your site recognized by the search engines!

1. Optimize WordPress Blog Post for the SERPs

1. Write Title of the post accurately that describes the content of the post and this Title must not contain more than 64 characters.
2. Build your content strategy around keywords that are relevant to your business that you would like to get ranked for. For example, if your interest is WordPress Theme, WordPress Plugin, it is essential that you utilize that keyword in your title,  in the description, as well should be unique, interesting, authoritative, and RELEVANT.

3. Try to get Backlinks with high Page Rank sites that have some relevance to your business to link to your blog.
4. Be sure that 404 errors on pages redirect to your homepage.

(Create a file with this line at the top, and make your 404?s go to that file, it’ll redirect to the home page. )

<meta http-equiv=”Refresh” content=”4; URL=www.domain.com”>)

5. Complete your meta descriptions. and Address your 301/302 redirects

6. Ensure than your site’s canonical errors are addressed so that you don’t have split indexing by the search engines.

A search engines considers these points before indexing your blog post:

  • The Keyword terms are to be relevant to the blog  post.
  • Search engin consider the authority of the blog content.
  • The post must contact the revelant information with the blog or site
  • The existence of blog or post for a while.
  • Blog or site doesn’t have a bunch of broken links.
  • Blog or website doesn’t contain a mega list of keywords.

2. Submitting Your Blog post or Site to The SERPs

There are free and paid ways you can submit your site to 100s of search engines with the click of a button.

Seo Link Fast indexer Tool

You must have a linking strategy to take all of your backlinks you create that link to your articles, blog posts, forum and profile urls etc and get those indexed and have multiple incomming links as fast as possible to get them ‘rank juiced’ up.

You must also take all of your RSS feeds (blogs, web 2.0 sites, articles etc) and add them to the mix as well but this will give us possible 100’s of links to work with!! and the time to do this manually can literally take days of effort BUT NO MORE!!!! Introducing the

It’s a simple 1-2-3 step Process:

Step 1 – Load Your URL’s

Step 2 – Ping Your URL’s

Step 3 – Meta Index Your URL’s to 31,000 Sites

With the ‘SEO Link Fast Indexer Tool’ you can:

  • Import URLs direct from file or the clip board.
  • Setup spinnable keywords / anchor text for pinging URLs.
  • Fast Meta Indexing of your links to over 31,000+ sites.
  • Add new Ping and Meta sites with ease.
  • Full multi threading for lightening fast performance.
  • Proxy server support to hide your IP addesss.

And the best of all. This is all done via a ‘click’ of a button!! 1 click and your all done.

Get INSTANT ACCESS To

The SEO Fast Indexer Tool Now!

1. What in the world is Pingoat! ?

Pingoat is a service that pings or notifies a number of services that keep track of weblogs and publish them. By pinging, you let the services know that your blog has been updated and hence, they crawl and index your site, publishing your blog contents, thus increasing your blog’s popularity.

2. Submit Express: TheFree Way

Here you simply input your sites URL and it will submit to over 40+ search engines. It doesn’t get any easier than that!  Submit Express offers a variety of link building services and they are worth checking out!

3. The FluffyLinkulator

Take advantage of the the Free FluffyLinkUlator, which has details about the submission pages for the search engines (google & yahoo!) and for DMOZ.org (a respected directory).

4. SubmitEdge

SubmitEdge offers a variety of link building services and they are worth checking out! You can submit your site to 200+ search engines for $29 with no work on your part. If your budget permits, this is a GREAT idea, its gets those spiders crawling your site!

SubmitEdge started out as a site that allowed users to maximize their return on investment by using the latest in directory submission services. We were one of the first few sites on the internet to offer:

  • Guaranteed ten day indexing of websites
  • Manual directory submission
  • Social bookmarking services
  • Search engine optimisation

Best WordPress SEO Plugins For Optimization:

The WordPress plugin community values SEO and has developed a number of plugins to help. Here are the best SEO plugins to help you choose the right tags, tell search robots what to work on, optimize your post titles and more. Do no use all these plugin, only install the one which fulfill your blog requirement.

1. All in One SEO Pack

One of the most popular plugins ever for WordPress, this plugin does a bit of everything for you from helping choose the best post title and keywords, to helping you avoid duplicate content and more.

2. Automatic SEO Links

Automatic SEO Links allows you to choose a word or phrase for automatic linking, both internal and external, set anchor text, choose if it should be “nofollow” or not, and more.  One of the best features of this plugin is that it will only do this for the first occurrence of a word in a post so you don’t have to worry about spamming your post with numerous links to the same thing.

3. Google XML Sitemaps

An essential tool in any blogger’s armory of SEO tools. While the name only mentions “Google,” this plugin creates an XML-sitemap that can be read by Ask, MSN and Yahoo also.

4. HeadSpace2

This plugin allows you to install all sorts of meta-data, add specific JavaScript and CSS to pages, suggests tags for your posts and a whole lot more.

5. Meta Robots WordPress plugin

An easy solution for adding robot metadata to any page you choose on your blog.  You can use it to make your front page links into “nofollows,” prevent indexing of search pages, disable author and date-based archives, prevent indexing of your login page and numerous other features.

6. Nofollow Case by Case

This plugin allows you to strip the “nofollow” command from your comments, and then you can apply it to only the comments you don’t wish to support.

7. Platinum SEO Plugin

The Platinum SEO Plugin offers you such features as automatic 301 redirects for permalink changes, auto-generation of META tags, post slug optimization, help in avoiding duplicate content and a host of other features.

8. Redirection

For any number of reasons you sometimes need to move a page from one spot on your blog to another, but then you risk losing that page’s status in search results.  Redirection helps you with your 301 redirects, captures a log of 404s so you can work on correcting them, sets up an RSS feed for errors and more.

9. SEO Blogroll

Do you worry that the people you link to in your blogroll are feeding off of your PageRank?  With SEO Blogroll you can make separate sections for various groupings of links, with an unlimited number in each, and all of them will receive the “nofollow” attribute.

10. SEO for Paged Comments

With the introduction of paged comments in WordPress 2.7, there was a potential problem with search engines thinking you had duplicate content as the post would appear on each page.  This plugin aims to take care of this issue for you until the folks at WordPress change things up.

11. SEO friendly and HTML valid subheadings

Some themes for WordPress will confuse your sub-header tags based on the page they are to be displayed on, but this plugin will automatically reset them to make them more SEO friendly by moving them down one spot in the hierarchical tree.  In other words, h2 becomes h3, h3 becomes h4 and so on.

12. SEO Friendly Images

Images can be a great source of traffic as people search for images of various subjects, and this plugin helps you with making sure that you have “alt” and “title” tags on all of your images so that the search engines can properly index them.

13. SEO No Duplicate WordPress Plugin

If you must have duplicate content on your site for whatever reason, SEO No Duplicate will allow you to state which version of the post search engines should index while ignoring the others.

14. SEO Post Link

The post slug is the blog title you see in a browser’s URL bar, and if it’s too long, search engines won’t take a liking to it.  SEO Post Link comes with an already populated list of words to cut from a title when it turns into a URL to make your post addresses that much friendlier.  You can set it so that it’s limited to a certain number of characters, cut short words, cut unnecessary words and more.

15. SEO Smart Links

Interlinking your blog can be the key to getting more people to read more of your posts, but it is time consuming and tedious to do it by hand.  SEO Smart Links does this for you automatically when you tell it what words to link to what URLs, and it also allows you to set “nofollow” and “open in window” comands for the links.

16. SEO Tag Cloud Widget

Love ‘em or hate ‘em, a lot of people use tag clouds on their blogs.  Since their inception they have been fairly unreadable by search engines, but with this plugin they will be converted to an SEO-friendly HTML markup that can be indexed.

17. SEO Title Tag

Your tags are an important part of your site for making sure that search engines know where to place your posts, and SEO Title Tag focuses exclusively on this.  Unlike some other plugins, and WordPress itself, this extension will allow you to add tags to your pages, your main page and even any URL anywhere on your site.

18. Simple Tags

An extremely popular plugin that focuses on helping you choose the best tags for your posts by offering suggestions, auto-completion of tags as you type, an AJAX admin interface, mass tag editing and a whole lot more.

19. Sitemap Generator

This is a more customizable sitemap generator than most with options to support multi-level categories and pages, category/page exclusion, permalink support, choices on what to display, options to show number of comments and more.

20. TGFI.net SEO WordPress Plugin

This particular plugin will do most of the usual SEO work of optimizing titles and keywords, but it adds a unique twist as it is mainly directed at people who use WordPress as a CMS.

45+ Top SEO WordPress Plguins – WordPress SEO

30+ Essential WordPress Plugins

Recommended eBooks:

WordPress eBook: Success with WordPress

Success with WordPress is a popular WordPress eBook that covers everything from blogging with WordPress, WordPress as a Content Management System (CMS), SEO techniques, and of course how to monetize your WordPress blog with AdSense and affiliate marketing!

Get eBook Success with WordPress

Free & Professional WordPress Security Service Free & Professional WordPress Security Service

We Love WordPress. WordPress Arena is a place for WordPress Developers and Designers, providing Tips, tricks, tools and resources to build a website or blog on WordPress. We also present The WordPress Showcase for all kind of WordPress Powered Websites.


Copyright © 2014 WP Arena All Rights Reserved

Divi WordPress Theme