PurabTech is technical blog for Programmer and Coders
Author: Purab
I am Purab from India, Software development is my profession and teaching is my passion.
Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks.
Purab's Github Repo
Youtube Chanel Video Tutorials
Connect to on LinkedIn
Many times we face the issue of internal server error for many wordpress sites. To Solve internal server error for wordpress sites. You can use the following techniques and tips. First do not hurry to take action. Before doing anything you need to take database backup first then you need to see the apache server logs and mysql db slow logs. If you are using the shared hosting then you can check the access and error logs.
we face the issue of internal server error for wordpress for many wordpress sites. To Solve internal server error for wordpress sites. first check error log
HTTP 500 Internal Server Errors , if you seeing on the sites. then do not get worried. Internal Server Error is one of the common WordPress errors. All types of errors can be fixable so don’t worry. There should be some reasons behind internal server errors.
Solve internal server error for wordpress
Note: First take the database backup and If possible to take the filesystem backup easily then take filesystem backup.
Solve internal server error for wordpress
PHP memory limit issue
Many times php memory limit will cause the internal server error. If you have dedicated server then you can easily change the php memory limit. you need increase the memory limit and restart the apache server. Many times if you use the new theme or new plugin. After activating the theme or plugin you might face the internal server error issue. Because new theme or plugin might need more memory for execution.
But if you are using the shared hosting then you need to set memory limit in your own php.ini file and put that file into your root folder of hosting.
Check the .htaccess file
Due to some issue your .htaccess file is corrupted which is present in your root directory folder of wordpress installation. Before doing anything first take backup of .htaccess file using filezilla or any ftp client. Then rename the .htaccess file to .htaccess-old and after that login to wordpress admin panel. Go to Permalink section and save it again. That will regenerate the .htaccess file again.
I think this will solve your issue.
Deactivate all the plugins
If you are able to login to wordpress admin panel then go to plugin section and deactivate all the plugins. It is possible, any plugin is breaking your site. If you are not able to login to wordpress admin panel then follow the following steps.
Use ftp client and go to wp-content folder and rename the plugins folder to plugins-backup. Then create the empty plugins folder in same place.
This way you are deactivating the all the plugins. I think this will solve your issue 100%.
Delete or Deactivate used theme
Many times I faced the issue when I activate the new theme. Site stops working. Not too worry. Just use any ftpclient and delete the new theme from themes folder. First take backup of your theme folder.
Contact to your hosting provider
If you are using the shared hosting then only you can contact to your hosting provider. Write a email about your site issue and when that happened.
I Hope above article will help you about solving the issue. Still you are facing issue then check the http error and access logs. You can write to me about issue.
Using above steps you will able to Solve internal server error for wordpress.
WordPress gives you to create gallery and show on any page. You just need to multiple image and show as a gallery. You can show the images as attachment of gallery image without any URL. I will show you in this article about add the link to gallery image. When you upload the single image then you can able to attach or add the link to that image and use in your post. you can link it to a custom URL under attachment display settings.
You can upload image from add post form or you can add the image from media uploader section. When you upload the single image then you can add the custom title, URL, description to image but If you want similar functionality for gallery then that is not supported by wordpress yet.
For adding the custom links functionality to wordpress gallery images, you can install and activate WP Gallery Custom Links plugin.
Plugin Overview
If you’ve ever had a WordPress gallery of staff, product, or other images and needed to link them to other pages but couldn’t, this plugin is for you!
This plugin adds a “Gallery Link URL” field when editing images. If the image is included in a gallery, the “Gallery Link URL” value will be used as the link on the image instead of the raw file or the attachment post. There are also several additional options (see “Usage” below).
Add Link to each gallery image in wordpress
It’s designed to work even if customizations have been made via the post_gallery filter; instead of replacing the entire post_gallery function, it calls the normal function and simply replaces the link hrefs in the generated output. By default, any Lightbox or other onClick events on custom links will be removed to allow them to function as regular links.
For each gallery image, you can specify a custom Gallery Link URL.
Use “[none]” as the Gallery Link URL to remove the link for that gallery image.
For each gallery image, you can select a Gallery Link Target (“Same Window” or “New Window”).
For each gallery image, you can select how to handle Lightbox and other onClick events (“Remove” or “Keep”).
Use
to ignore the custom links on an entire gallery.
Use
and
to open all images in an entire gallery in a new window/the same window, respectively.
Use
to keep Lightbox or other onClick events on all custom-linked images in an entire gallery.
Use
to remove links on all images in an entire gallery.
I personally liked this plugin and I used in some of my projects. This plugin gives developer to modify the there functionality using there api. This plugin supports and API. You can use plugin api in your wordpress theme and custom code.
Many websites need to image gallery in there site so you can use this plugin for sure.
In wordpress we can Create custom meta fields using Custom Field Suite wordpress plugin. wordpress supports custom post type and meta fields in the CMS. Now wordpress supports the custom post type and custom meta fields in the CMS. custom meta field is great feature in wordpress. We can use the meta fields for multiple custom purpose. I am using meta fields in many projects for achieving the custom user requirements.
Custom meta fields are used for add the custom data with specific posts and pages. We can attach any type of data through meta fields. It is very useful feature of wordpress. Custom Field Suite is great wordpress plugin which, makes really simple for you to create custom meta boxes visually for you posts, pages or any custom post types.
It is a wonderful free plugin and have great documentation for you to get start. You can easily create text, text area, wysiwyg, color, select, file upload, user, relationship and loops using visual UI and with minimal code you could display the values in your theme.
Create custom meta fields using Custom Field Suite plugin
The placement rules help you to define, in which scenarios you want to display the custom meta boxes in each content type. You can choose from post type, user roles, exact post or taxonomy terms.
Create custom meta fields
The plugin also have an export and import feature, so it is easy for developers to move from development box to actual server.
WordPress itself creates the permalink. WordPress permalinks are very important for SEO purpose. Short words are sometimes are not good for seo so you might need to remove the short words from permalink. Using the following code you can remove the short words from wordpress permalink URL.
Using code you can Remove short words from wordpress permalink.
You just need to add the following code functions.php file.
add_filter('sanitize_title', 'remove_short_words');
function remove_short_words($slug) {
if (!is_admin()) return $slug;
$slug = explode('-', $slug);
foreach ($slug as $k => $word) {
if (strlen($word) < 3) {
unset($slug[$k]);
}
}
return implode('-', $slug);
}
WordPress is very popular and most used CMS in the world. Many times we do some custom development with wordpress so we need to disable automatic updates of wordpress. Sometimes when we update the wordpress then it will break your site. It is very important, when you update the worpdress version with wordpress updates. You need to test the updates on local box or QA box first.
disable automatic updates of wordpress
For disable the automatic the update you need to open the wp-config.php file and put following into that file.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
After adding above line automatic updates will be disabled and If you want to do the wordpress update then you need to update the wordpress installation manually.
I think, before every wordpress updation. First the take the database and filesystem backup and then test on local box. Then do the wordpress version updation.
WordPress is very popular CMS which is widely used in the web world. There are millions of websites build using wordpress CMS. Every month there is new update and new version is coming. Last month wordpress released the 3.7 wordpress version. New release will be 3.8 wordpress version coming with new features. It is very focused and important wordpress release by WP Team.
WordPress release with new features is coming . Last month wordpress released 3.7 wordpress version. New release will be wordpress version with new feature.
WordPress release with new features
In wordpress 3.8 version there are very important UI changes will be planned in new upcoming version. Team is planning to release the new version in 2013 December End. Many New features available for testing by development environment. If you want to download the development version and test it then use following URL:
The MP6 plugin included in the WordPress core in 3.8. It was used in WordPress.com sites, If you want to use it your current wordpress then download the plugin. It will change the WordPress admin interface a modern, optimized, and polished new look that it deserves.
WordPress release with new features
The current admin UI came with two color, MP6 uses Open Sans font which will be shipped with WordPress 3.8. MP6 also brings great improvements to buttons, forms, and the overall appearance of the admin interface making it prettier and user friendly.
Great Themes preview Experience
Theme preview the one to most used the important feature of wordpress CMS. Now in current wordpress version we are seeing lot of text content along with theme preview images. WordPress.com itself uses some nice wordpress plugins like theme experience plugin (codename Thx38) Now wp development team is adding this plugin feature in to the core feature. This wp plugin will change the theme screens in WordPress admin area. It has larger theme screenshots and clean UI interface. Theme search is moved to the top right corner of the screen. To try this as a plugin on WordPress 3.7 or earlier, you would need to install MP6 plugin first.
WordPress release with new features
New Look to Dashboard
WP dev team changed the dashboard screen totally in 3.8 release. If you earlier used the Dashboard plugin by @lessbloat then you will know about the new look of dashboard. Dashboard plugin is also included into the core code of wp. They removed the unwanted widget and added some useful and quick widgets in dashboard.
For example, the incoming links widget will be removed. ‘Right now’ widget will be replaced by ‘Activity’ widget. QuickPress on the dashboard screen will be renamed to Quick Draft and will be much simpler.
New Fast and Easier Widget Area Manager
Widgets are used every where is wp cms. We use the widget in header, footer, sidebar, post area. Now we can drag and drop the widgets. Using multiple widget is sometimes it becomes difficult to drag and drop a widget into the multiple sidebars. Along with the WordPress new version 3.8, The Widgets UI will allow admin to easily choose the sidebar they want to add a widget to without dragging it across different sidebars. The new widget interface will be very user friendly.
There are many bug fixes and other small features are coming in 3.8 version. I am really waiting for the new wordpress version. I am looking for better user and role management in wordpress so it will became full featured CMS like Drupal. WordPress is improving but still lot of new ideas and features needs to include in wordpress still. That is a path.
Many wordpress theme developers need to create the WP theme demo on showing there wordpress theme. Theme demo is more important to show the users how wordpress theme is looking on live site. WP template designers want to show there all wordpress themes in one wordpress installation. There are many wordpress plugins which gives you facility show wordpress theme demo to users.
Many wordpress theme developers wordpress themes every day. Many WordPress Theme Demo Bar Plugins which gives you facility show wordpress theme demo to user.
Best WordPress Theme Demo Bar Plugins
I collected the some nice and best wordpress theme demo bar plugins for This is a theme demo bar plugins would be shown on top of page, allow users to preview another theme.
WordPress Theme Demo Bar is a plugin for wordpress that allows any wordpress theme to be previewed without activating it. A demo bar would be shown on top of page, allow users to preview another theme. The demo bar is customizable at admin panel. More than 1 extra CSS files can be loaded too.
This is based on the ‘Easy Theme Switcher’ plugin by sergiovilar. It will add a theme demo bar to the top of your site listing every theme you have installed. When a visitor clicks one of these theme names the EST plugin will start a new session and apply that theme’s style sheet to your site giving the visitor a live theme demo.
Comments: I personally used the theme demo bar for many years.
All scripts and social media plugin add extra javascript code to site. I have best solution for adding social media bookmark in wordpress without javascript.
social media bookmark in wordpress without javascript
I used many types for social bookmark plugins for sharing the content. I tried a some best services like those provided by AddThis and ShareThis. All the scripts and social media bookmarks are adding the some extra javascript code to website. Some social media buttons will add the swf/ flash code to website which to too heavy. So Adding the multiple javascript files for each social media bookmark is not a good solution.
My suggestion is, use anchor links with parameters added to the href attribute (which is basically what you get anyway once those JavaScripts have done their work).
Following code are important in wordpress for sharing the content to social media sites: <?php the_title(); ?> // It will return the Post/Article Title <?php the_permalink(); ?> // It will return the Post/Article Permalink or URL <?php the_excerpt(); ?> // It will return the Post/Article Description <?php the_post_thumbnail(); ?> // It will return the Post/Article Thumbnail Image
For Facebook: social media bookmark in wordpress without javascript
For Mail: social media bookmark in wordpress without javascript
Mail to
<a rel="nofollow" target="_blank" href="mailto:?subject=<?php echo urlencode(the_title('','', false)) ?>&body=<?php the_permalink() ?>" title="E-mail this story to a friend!">
<img src="http://images.purabtech.in/email_32.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" /></a>
For RSS feed: social media bookmark in wordpress without javascript
we collected best social sharing bookmarking wordpress plugins, which are useful for wordpress. These wordpress plugins will increase the social presence.
best social sharing bookmarking wordpress plugins
These wordpress plugins will increase the social presence of wordpress blogs and sites. Many times we spent so much time to evaluating wordpress plugins for social sharing. Using social sharing wp plugin you can be able to share to posts on twitter, facebook, linkedin and google plus and other sites.
Adding social share buttons are very important add in every website. Now these days we are adding the social buttons to every website. Specially sharing content on twitter, facebook and google plus is very important. There are many wordpress social sharing bookmarking wordpress plugins which are free and premium. Many people use the premium wordpress plugins for sharing the content. I spent many times so much time to check social share button wordpress plugins.
Using following list of plugins you can easily able choose the best social sharing wordpress plugin. I tested the all the wordpress plugins and used for some time. I reviewed some of best social bookmarking wordpress plugins.
Long page loads aren’t fun for anyone. Use WPSocialite to take control of heavy social sharing links and load them how you want!
No one likes long load times, but we all want to be able to share our content via Facebook, Twitter, and other social networks. These take a long time to load. Paradox? Not anymore! With WPSocialite (utilizing David Bushell’s amazing SocialiteJS plugin [http://www.socialitejs.com/]) we can manage the loading process of our social sharing links. Load them on hover, on page scroll, and more!
Flare-wp-plugin, best social sharing bookmarking wordpress plugins
The Flare plugin isn’t in active development because we’ve created a hosted app version of Flare that works with virtually any website or CMS, including WordPress. Flare is a simple yet eye-catching social sharing bar that gets you followed and lets your content get shared via posts, pages, and media types.
Flare buttons work in IE7+ as well as current versions of Firefox, Chrome, Safari and Opera; vertical following does not work in IE6. Admin interface requires a modern browser (e.g. anything not IE 6-8 :). Utilizes jQuery for JavaScript processing, although it is setup to work properly with other libraries, your experience may vary. Requires PHP 5.2+.
This plugin is free to use and is not actively supported by the author, but will be monitored for serious bugs that may need correcting.
Share Buttons by AddThis , best social sharing bookmarking wordpress plugins
AddThis Share Buttons help drive traffic to your site by helping visitors share, bookmark and email your content to over 330 services. Get more traffic back to your site by installing the AddThis WordPress plugin. With AddThis, your users can promote your content by sharing to over 330 of the most popular social networking and bookmarking sites (like Facebook, Twitter, Pinterest, Google+ and LinkedIn). We also support address bar sharing in modern browsers. Our button is small, unobtrusive, quick to load and recognized all over the web.
Optionally, sign up for a free AddThis.com account to see how your visitors are sharing your content: which services they’re using for sharing, which content is shared the most, and more.
Slick Social Share Buttons, best social sharing bookmarking wordpress plugins
Add facebook, twitter, google +1, linkedin, digg, delicious, reddit, buffer, stumbleupon and pinterest pin it social media buttons to your website in either a floating or sliding panel and see summaries of all your social metrics in the admin social statistics page
Button Panel Options
To access the plugin settings go to WordPress admin -> Social Buttons -> Social Buttons
The button panel can be fully customised on the plugin settings page in WordPress admin:
Type – Select either a “floating” button or a “Sliding” tab
Location – Select the position of the button panel.
Position From Center – only available for floating buttons this allows you to set the panels position based on the center of the screen as opposed to the edge of the browser. If checked enter the number of pixels that the panel should be positioned from the center of screen
Offset – Position the panel by offsetting the location from the edge of the browser in pixels
Direction – For sliding tabs select whether to list the buttons horizontally or vertically.
Disable Floating Effects – check the box to remove the floating effects – floating panel will remain static in the screen
Floating Speed – The speed for the floating animation (only applicable for the floating type)
Animation Speed – The speed at which the panel will open/close
Auto-Close – If checked, the panel will automatically slide closed when the user clicks anywhere in the browser window
Load Open – If checked the sticky/floating panel will be in the open position when the page loads
Default Skin – Uncheck if you wish to use your own CSS styles for the button tab and panel
Tab Image URL – Enter URL if you wish to replace the current default tab image
Lazy Social Buttons, best social sharing bookmarking wordpress plugins
Delayed loading of Google +1, Twitter and Facebook social buttons on your posts. Have your cake and eat it too; social buttons and performance.
Social buttons attract more visitors to your site. When users +1, Tweet, or Like your page, it advertises your page to their friends and followers. This plugin adds social buttons to your posts as a small sprite at first and delays loading the real buttons until the user hovers over the social buttons. It delays ~300KB of social button components by loading <6.5KB of our own script and sprite. onMouseOver activates the load of the ~300KB of social button components.
Our current version is limited to +1, Tweet, and Like and has the horizontal display with the spinning wait indicator.
rtSocial, best social sharing bookmarking wordpress plugins
Normally social sharing codes provided by facebook, twitter, etc renders iframes at run-time. These iframes increases page-size and slow-down your website (on client-side).
The power of this plugin lies in non-blocking JavaScript. Normally social sharing links use iframes to output their content viz. icon images, share counts etc. The load time of these iframes block the page load, and hence slow down the site. The slowest is on pages with multiple instances of sharing links (e. g. blog indexes). rtSocial uses non blocking JavaScript to get all the data in one shot, and injects them in the mark-up. And it uses a single sprite with all the images required, hence eliminating the need to load the images from the service provider’s CDN. Comes with minimal settings, options to display the links automatically above and below the content, choose FB button styles and layouts. A simple function call lets you to display the links anywhere in your theme!
With just 1 image (CSS-sprite), 1 JavaScript and 1 CSS file loaded from WordPress-running server; counts are fetched using AJAX request for sites like facebook/twitter after page loading finishes.
Many times we want to create just simple text and image widget using the wysiwyg editor. using WYSIWYG Widgets create HTML and image or media in text widget.
Create Widgets using Visual Editor
WordPress widgets are very important in CMS. In every CMS like WP and Drupal we have sidebar widgets. In Drupal creating a sidebar is very easy. WordPress cannot give you default and easy create widget or sidebar functionality. Many times we want to create just simple text and image widget using the wysiwyg editor. There are many easy ways to create widget using text widget functionality. We can add the HTML and image or media in text widget.
With text widget we can add the HTML, CSS and images code in text widget and show in sidebar or footer section. But many times admin does not know about CSS and HTML but still admin wants to add the images and formated text in widgets. There is very nice wordpress plugin which will give you ability to add the widget with formated text and images.
This plugin adds so called “Widget Blocks” to your website which you can easily display in your widget areas. Edit widget content using the default WordPress visual editor and media uploading functionality. Create widgets like you would create posts or pages.
You can create or edit the widget blocks just like you would edit any post or page, with all the default WordPress editing functions enabled. This way, you can use the visual editor that comes with WordPress to format your widgets. You can even use media uploading to insert images and so forth.
Create Widgets using Visual Editor config
Features:
Create beautiful widgets without having to write HTML code
Easily insert media into your widget content
Add headings, lists, blockquotes and other HTML elements to your widgets using the WordPress visual editor
Use WP Links dialog to easily link to any of your pages or posts from a widget
Use shortcodes inside your widgets
Translation ready
First install the install and activate the WYSIWYG Widgets plugin. Then install and activate the WYSIWYG Widgets plugin. go to Widget Blocks » Add New to create a new widget block. Basically Widget Blocks are custom post types and every post will became new widget. It is very cool and easy to use. It is useful when you are giving the all the control to admin.