get_single_cat()
2010-01-16 @ 14:52I created a function that returns a value depending of the input type. Put the function into your functions.php in your theme folder.
I created a function that returns a value depending of the input type. Put the function into your functions.php in your theme folder.
Wordpress have a built in function called get_currentuserinfo. A global variable is set. It calls a function to get the user information. It then echos the username. The code is not as short and easy as it could be.
Wordpress have a ”bug”. It doesn’t add a current_cat_ancestor class to the wp_list_pages function. If you need it, you can use the code below.
I put the code in my functions.php file, then got this error: syntax error, unexpected ';', expecting ')'
The error is in the line Phil is referring to above.
I changed [...]
maybe you can help with this: how do I get a parent-cat class added in to all categories that have children in the normal wp_list_categories. This above code works well [...]
functions.php is the best place to put it, in your theme folder.
If you need to add a stylesheet, a javascript file or Google Analytics code you normally need to edit your theme header.php file. Add additional code to your header WITHOUT editing your theme with Add to Header.
...in response to my previous comment, i see that plugin order is determined by plugin name (alpha ordered) so renaming to z_ + name fixed it for me. thanks again [...]
Great idea and serves a real need but wondering if there is a way to have it load after all other plugins so my style include could overwrite previous includes [...]
This works wonderfully, thanks! But I'm curious...the default placement of an added chunk of code is in front of/above the current header. I'm wondering if there's a way [...]
Unlike many other page navigation plugins, this one is based on a core page number function called paginate_links. You can modify the paging styles in many ways.
Ok i love this plugin but i have one problem. When I added in the links bullets for an list shows up on the P in page 1 [...]
Firstly thanks, this plugin is great and will save me the trouble of creating my own pagination buttons.
One thing I would like to request / suggest is the option to [...]
Man your plugin is cool,I want to know how to insert it in one page...Thanks
I want to use SQL-querys within the Wordpress loop and still be able to use the template tags. Here is the solution.
Found this while looking for a way to do exactly what you defined as the problem, having both posts and pages in one loop. I really wanted to find a [...]
Add a Javascript warning to prevent people from accidentally delete something. It’s quick and short.
What I don’t like with wp_list_pages is that you can’t exclude or include pages by NAME. Only by ID is available. Here is the solution.
How do I set text-decoration: underline to dotted or dashed? Don’t use text-decoration at all. Use border-bottom on the anchor tag instead.
It has also been suggested that you first remove any text decoration (such as underline) before you define a bottom border. See the tips here:
http://webdesign.about.com/od/beginningcss/a/change_link_underline_styles.htm
It’s a mistake. I’ve fixed the issue now. Thanks for letting me know.
Hi, at the page ‘http://www.devdevote.com/2009/07/25/text-decoration-dotted-dashed-underline/’ the link “works with … firefox” points to Apple/Safari… hope it’s really only a mistake.
Cheers.
Do you add multiple stylesheets in your HTML file? Instead of putting multiple rows of data in your HTML file, add them into your CSS file.
I wouldn't use a blanket "don't do this" statement here. There are two reasons why you would (and should) use multiple stylesheet links instead of @import:
1) alternate media stylesheets, for [...]
This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.
Ok i love this plugin but i have one problem. When I added in the links bullets for an list shows up on the P in page 1 [...]
...in response to my previous comment, i see that plugin order is determined by plugin name (alpha ordered) so renaming to z_ + name fixed it for me. thanks again [...]
Great idea and serves a real need but wondering if there is a way to have it load after all other plugins so my style include could overwrite previous includes [...]
2010-08-04 @ 18:51
Hi, this is a great piece of code, thank you! :)
Since you say if we have any ideas we can write a comment and you’ll look into it, I have [...]
2010-02-01 @ 03:31
Thanks man... this was just what i was looking for...
:)
2010-01-17 @ 14:32
Try this:
echo get_user(‘email’);