Recent posts - page 3

2

get_id_by_post_name()

2010-01-16 @ 14:53

The function converts a post / page name to a post /page ID.

Share
  • Aaron
    2011-02-25 @ 09:00

    Agree with Rama. Even get_by_postname would work...good for anti-collision in a plugin.

  • Rama
    2011-01-29 @ 07:19

    Thank you!

    btw, why wordpress does not include this function?

3

get_permalink_by_name()

2010-01-16 @ 14:53

I created a function that returns an URL when sending a post / page name as an in parameter. Put the function into your functions.php in your theme folder.

Share
  • AJ Clarke
    2011-05-27 @ 19:16

    This piece of code is great. But if you have made significant revisions to the page (like changing the slug) it gets messed up and shows a slug such as [...]

  • Ann
    2011-04-30 @ 00:44

    This solved a problem for me - many thanks!

  • Anthony Tiefenbach
    2010-05-04 @ 00:53

    I'm using this function on a page to go link back to another page, by name, within the loop, with no problems. However, on a post, within the loop, [...]

1

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
  • patrick
    2011-03-09 @ 05:15

    thanks jen , its work for me , i have try it at my categorie page

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
  • 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’);

7

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
  • chai
    2010-10-24 @ 13:40

    Can modify with css tab navi manu?

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

19

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
  • Jennifer Crane
    2011-08-17 @ 23:19

    I added my banner java to the add to header plugin, but is there anyways I can get the banner to display directly below the header image and menu, and [...]

  • Donald Haas
    2011-08-08 @ 18:13

    Jens,

    Nice work, IMHO.

    Question: If I have already created a header.php file in my child theme, will ATH put its code there or in the WP header.php file? Or, is there [...]

  • Preston Crawford
    2011-07-20 @ 18:19

    Trying to use this with my site and I'm not seeing a "settings" link by the plugin. Any idea why this might be?

75

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
  • Phil
    2011-07-05 @ 13:26

    Hello
    Your plugin is excellemt.
    I just need for a method thtat numbering starts not on 1 but from a different number related to the erticle.
    Is this possible?

  • Awon
    2011-06-10 @ 12:19

    In Wordpress, Page navigation is so popular. we use it as default or plugin. it works nice, but sometime we face problem when we use query_posts() for selected category post.
    i [...]

  • parvez
    2011-04-07 @ 16:59

    this is great plugin.it's working on index and category page .but i m using on page.php then it's not working, always show fist 10 post where as in url [...]

4

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

Share
  • Oliver
    2011-06-01 @ 04:29

    I had a different problem, but your solution to your problem helped me a lot. Thank you.

  • outsource design
    2010-11-27 @ 10:41

    While we are talking about Use SQL-querys in the loop - WITH template tags - Multiple WP query objects / queryposts combined | devdevote.com, Another great option is to use [...]

  • BrenFM
    2010-11-08 @ 03:48

    REferring back to your original post on Stack Overflow... couldn't you use the following:

    $my_query = new WP_Query(array('post_parent' => 3, 'post_type' => array('post','page')));

    usually works for me...

Javascript confirm
3

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

Share
  • ubunu tips
    2011-04-27 @ 12:35

    i use this tutorial to make a cool confirmation,,,,,thanxxxx

  • Patrick
    2011-04-06 @ 09:09

    Thanks!

  • Fawad
    2010-12-08 @ 21:10

    Thanks man. It helped.

1

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
  • Ivan
    2011-03-01 @ 09:44

    Yes Jens! Yes!
    Are many days I'm looking for this solution!
    It was impossible to find information about what you wrote.!
    Thanks!
    From now on you have a new user who follows your website.
    Big [...]