Getting a blank screen or blank page or dashboard under your WordPress powered website? Relax! You are not the single person to face the issue and I have sum up all the possible solutions which will sure help you out to solve the issue.
Category » WordPress
Deactivate plugins when not able to access dashboard
Sometimes any change made in WordPress site mess it’s working and we need to deactivate plugins or set default theme with alternate methods because we feel ourselves not able to access dashboard to undo changes.
Most of the times we see blank pages whenever we try to open wp admin dashboard that can happen due to any poor plugin or broken theme.
Loop in wordpress
In every programming or script language, loops structure has its own importance. Generally Wordpress follows PHP. But wordpress also has some specific ways to achieve loops functionality.
Getting top parent category
Someday before I got a query for getting top parent category of a post.
Query was as following: I have a post, the post is in 3 categories. The category hierarchy is like so: Fashion => Men => Shoes
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.
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.
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 .
Getting user info after sign in from wp_signon function
I use wp_signon() and it returns a user, not an error. However when I do is_user_logged_in() it returns false.
I am trying to get current user info by using get_currentuserinfo() and wp_get_current_user()
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.
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.