Recent posts - page 3

get_single_cat()

2010-01-16 @ 14:52

I created a function that returns a value depending of the input type. Put the function into your functions.php in your theme folder.

  • Share/Bookmark
4

get_user()

2010-01-16 @ 14:51

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.

  • Share/Bookmark
  • Harlow
    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 [...]

  • Chris
    2010-02-01 @ 03:31

    Thanks man... this was just what i was looking for...

    :)

  • admin
    2010-01-17 @ 14:32

    Try this:
    echo get_user(‘email’);

6

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.

  • Share/Bookmark
  • Mike
    2010-07-01 @ 16:03

    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 [...]

  • Ben
    2010-06-01 @ 19:50

    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 [...]

  • admin
    2010-05-17 @ 16:05

    functions.php is the best place to put it, in your theme folder.

8

Add to Header

2010-01-16 @ 14:49

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.

  • Share/Bookmark
  • john
    2010-08-30 @ 21:32

    ...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 [...]

  • John
    2010-08-30 @ 21:12

    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 [...]

  • Eric
    2010-05-21 @ 17:14

    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 [...]

42

WP Paging

2010-01-16 @ 14:47

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.

  • Share/Bookmark
  • Sheldon
    2010-09-09 @ 02:52

    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 [...]

  • Chris
    2010-08-06 @ 09:03

    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 [...]

  • Sammy
    2010-08-03 @ 03:39

    Man your plugin is cool,I want to know how to insert it in one page...Thanks

1

I want to use SQL-querys within the Wordpress loop and still be able to use the template tags. Here is the solution.

  • Share/Bookmark
  • Moa
    2009-12-21 @ 14:46

    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 [...]

Javascript confirm

Add a Javascript warning to prevent people from accidentally delete something. It’s quick and short.

  • Share/Bookmark

Get ID by post or page name

2010-01-16 @ 14:33

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.

  • Share/Bookmark
3

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.

  • Share/Bookmark
  • Bill Albing
    2010-06-24 @ 15:44

    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

  • admin
    2010-01-17 @ 12:38

    It’s a mistake. I’ve fixed the issue now. Thanks for letting me know.

  • SultansOfSwing
    2009-08-24 @ 12:32

    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.

1

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.

  • Share/Bookmark
  • Nushae Fahey
    2010-01-27 @ 16:41

    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 [...]