WP Nav menu append to url

Using wp_nav_menu() , how can I append a value at end of each URL? For example, I have the following url: http://www.example.com/ but I have to append a language parameter at the end, so the url should be: http://www.example.com/?lang=$language 3 Answers 3 I found the solution modifying the behaviour of wp_nav_menu with the wp_get_nav_menu_items-filter. Here’s … Read more

echo post-permalink without http and www

I have this line … <div class=”permalink”><?php the_permalink(); ?></div> and the result on my page looks like this … http://mysite.com/whatever/post-or-so I guess it could also look like this … http://www.mysite.com/whatever/post-or-so However I’d like to have just mysite.com/whatever/post-or-so without the http:// or www in front of it. What is the best and easiest way to do … Read more

Which of WordPress’s .php files need to be directly accessible via HTTP?

I’m trying to tighten up security on my WordPress installation, and one of the things that seems like it might be a good idea is preventing all of the internal-use .php files from being accessed directly via HTTP. For instance, http://MYSITE/blog/xmlrpc.php needs to remain directly accessible, but there’s no reason why http://MYSITE/blog/wp-load.php shouldn’t give a … Read more

“Reversable” and “Re-useable” Subcategories (or other taxonomic structure)

Hope you can help a WP newbie 🙂 It is my understanding (and please correct me if I’m wrong!) that I cannot use the same subcategory slug in multiple parent categories, i.e. this structure is impossible with WP’s category functionality: example.com/design/exotic/my-post/ example.com/travel/exotic/another-post/ My question is a two-parter: Are there any plugins or code I can … Read more