WordPress Responsive theme, logo displays different in browsers

Im a beginner when it comes to building a site. Thats why i choosed to build with Wordpress. The thing is that i got i responsive theme that should work with any browser. I upload a logo by going to …

WordPress – How to sanitize multi-line text from a textarea without losing line breaks?

If I sanitize and save some meta text (called ‘message’) entered by the user like like this… update_post_meta($post_id, ‘message’, sanitize_text_field($_POST[‘message’])); …and then retrieve and …

custom category tree in wordpress

Hi i want to create a tree of categories in wordpress like this :

How to Load Ajax in WordPress

I’m familiar with using ajax in the ordinary way with jQuery. I’ve played around it for a while, but don’t understand what Wordpress needs to get it to work… What I have here is taken from some …

automatic login to wordpress dashboard from another site

I want to log in automatically to WP admin/dashboard from another site without going thru the login process.. I’ve tried the following but with no luck:

Merging a general wordpress search with a woocommerce product search?

I am using the following two codes to generate a wordpress search and a woo commerce product search? Is there a code to merge theme into one search bar doing both functions? <?php …

WordPress localhost ftp

I have wordpress running on my localhost on mac Lion. Everytime I try to install or delete plugins it asks me for hostname, ftp username and ftp password. I configured my localhost to 127.0.0.1, but …

How to use session_start in WordPress?

I’m creating a bilingual site and have decided to use session_start to determine the language of the page using the following: session_start(); if(!isset($_SESSION[‘language’])){ $_SESSION[‘…

Using Environment variables in WordPress wp-config

I’m using phpfog.com for hosting and github.com for issue tracking, etc. I have two remotes setup, one to phpfog.com, and the other to github. In the back-end admin of phpfog you can define …

Remove Category Base from WordPress Category URL

I fished around the internet for a solution to this, tried a plugin or two to remove the /category/ from wordpress url’s. While some of these plugins are good, the category link still display’s /…