WordPress – Shortcodes in custom widget

Few days before, I developed a custom widget as per requirement and in that I was using textbox and textarea for inputting data. I was using HTML tags and Shortcodes in custom widget but Problem was that short-codes rendering out as text.

Read More

WordPress AJAX login in sidebar without a plugin – Part II (AJAX logout)

In the previous part of this tutorial we covered technique to implement AJAX login in sidebar without a plugin in WordPress. In this part two we will continue with AJAX logout.

After a successful login, login form gets disappear and AJAX loads user’s display name and a link to logout on the same page. Now we need to apply some functionality to show the same and keeping the login form hidden on page refresh or redirect.

Read More

WordPress AJAX login in sidebar without a plugin – Part I (Login)

In this AJAX login articles series we will implement best-practice techniques to provide Ajax login/logout mechanism for WordPress that will be available in sidebar.

By following this article you will be able to create a nice login box that resides in widget sidebar of your website and checks for user credentials and behaves accordingly .

Read More

Moving the Sharing and Like buttons in Jetpack

In our WordPress blogs, the Sharing and Like buttons in Jetpack get printed at the end of the the_content() Loop function, which causes them to display at the end of our post’s text by default. But that may not be where we want them in our site’s design.

Read More

Add a default image to Jetpack if no image present in a post

Here is a code snippet to add a default image to Jetpack if no image present in our post and we wish that image to be used by Jetpack to publicize our post.
Jetpack crawls the post and looks for images that can be used when sharing that post on Facebook, on Twitter. It starts by looking for a featured image.

Read More

WordPress custom breadcrumbs without plugin

Breadcrumbs are the important part of every website for easy navigation. Here is a simple WordPress custom breadcrumbs without plugin code which you can copy paste and paste to `functions.php` file of your active theme.

More ever you will also find some easily configurable options to modify breadcrumbs to match your site’s look in this WordPress custom breadcrumbs.

Read More

Removing unused shortcodes from the post content

In WordPress, we use plenty of plugins, Some of these plugins require us to place a shortcode in the post, like [favourite_posts]. Shortcode may be a good way to add functionality on our site, but when we deactivate the plugin, the shortcode in the post content don’t get removed.

Read More

Removing shortcodes from the post content

Wordpress users use shortcodes in the post content for integrating PHP or other type of code between the content and may be a good way to add functionality to the site. But sometimes we need for removing shortcodes from the post content from a specific page or specific post.

Read More

[ Page 4 of 5 ]