4
Feb
Quick Tip #9 - Change the default capabilities of WordPress users with ease
Posted by Nouveller in Quick Tips
Posted by Nouveller in Quick Tips
In my latest WordPress project, the client wanted a user with the capabilities of a Contributor but they also wanted them to be able to upload files. This is where the problem arose, a Contributor can’t upload files! I could upgrade them to an Author, which would allow them to upload files but in turn [...]
Posted by Nouveller in Quick Tips
Right here’s the scenario. On one of your clients post page’s you use the_excerpt function to display an excerpt for each post. You’ve got room for a decent size excerpt and explain to them they can put about a paragraph into each excerpt, 100 words or so…
Posted by Nouveller in Quick Tips
To be more precise, we’re going to look at some of the functions used in the ‘Finding’ section of jQuery’s Traversing methods. The best way to explain this, is of course, with an example. So lets start with the problem that led me to use Traversing, oh and thanks to @tweaked for prompting me to [...]
Posted by Nouveller in Quick Tips
In this quicktip I’ll show you how to create clever ‘pretty URL’s’ using your servers htaccess file. Why are they clever? The easiest way to explain this is in an example : So say we enter www.example.com/pretty-url/ into our browsers address bar, this will then call the file www.example.com/pretty-url.php (or whatever file extension you like) [...]
Right lets get straight to it as this is only a quick tip, do note though that we’re only scratching the very surface of PHP classes.
We’ll be creating two files, our main page index.php and our class file class.helloworld.php. The only thing we’ll need on our index.php is the code below and the calling of [...]
Posted by Nouveller in Quick Tips
In this quick tip, I’ll show you how to display custom messages to your visitors depending on where they click from onto your website. I saw this technique and at first thought, how is this being done?! But I’d forgot the value’s PHP can store in $_SERVER
Below is the full code
If you want to quickly [...]
Posted by Nouveller in Quick Tips, WordPress
After building several WordPress sites lately, I’ve been getting used to writing it’s common, but useful functions to do various different things. I’ve now come to write new sites that don’t use WordPress and I miss those functions! So I’ve created my own version of the is_page function among others. View the is_page function in [...]
Posted by Nouveller in Quick Tips, WordPress
I’ve had this problem (changing the order on those darn categories pages) from day one since working with WordPress and it really bugged me when I’d had to resort to plugins to solve the problem. Basically, when you select different categories in WordPress the post order and category is set in a query which you [...]
Posted by Nouveller in Quick Tips
With most sites I build, I would have quite a big use for min-height but with not all browsers supporting it, I can’t really use it. So today I had a bash using jQuery to solve this dilemma, and here’s what I came up with.
First I defined my minimum height for my element in a [...]