33 | Finding Exact Information on WordPress Functions

g+

According to my motto:

‘Knowledge is Knowing where it is Written’
by Albert Einstein

– I like to look up the core files of WordPress where the functions are defined.

What I quite often do when I come across something new or not fully understood – a function, or template tag, or whatever wordpress related:

I search the web for it; not just with any keywords, but quite focussed.

Lets take the example of one of my earlier posts (Front Page Comments on your WordPress Blog) where I was investigating why comments don’t easily show on the front page or on archive pages of a blog:

The function in the template files that would show comments and the comment form, is ‘comments_template()’ – I therefore search for:

‘function comments_template()’

the search engine of my choice returns (apart from many other links) first of all the link to the documentation in the codex; and a link to the core file (and the exact line):

Obviously, my search engine knows me, so the relevant results show quite at the top of all possible search results; you may need to scroll down a few pages to find the important link: the one beginning with ‘PHPXRef’.

the link to follow is:
http://phpxref.ftwr.co.uk/wordpress/_functions/comments_template.html

in the page that opens, you’ll get the line:
defined at: followed by a link.

click on that link;

http://phpxref.ftwr.co.uk/wordpress/wp-includes/comment-template.php.html#comments_template

that leads you to:

with a list of some functions; click on the title of the one you are looking up.

http://phpxref.ftwr.co.uk/wordpress/wp-includes/comment-template.php.source.html#l822

in there in line 851, you have it (the code that explains why comments do not automatically show on the front page; and what you can do to make them show):

851      if ( !(is_single() || is_page() || $withcomments) || empty($post) )

btw:
This search method is also great for finding related functions, global wordpress variables, and expanding your vocabulary and understanding of wordpress terms…

This entry was posted in Tips & Tricks and tagged , , , , , . Bookmark the permalink.

7 Responses to Finding Exact Information on WordPress Functions

  1. Hollie Rabideau comments:

    Well done. I i never thought I would personally accept as true with this opinion, but I???m commencing to view things at a different view. I must research more about this simply because it seems fascinating. Another thing I don???t understand though is the way things are all related together.

  2. Terence Truong comments:

    Hello!

    You Need Leads, Sales, Conversions, Traffic for transformationpowertools.com ? Will Findet…

    I WILL SEND 5 MILLION MESSAGES VIA WEBSITE CONTACT FORM

    Don’t believe me? Since you’re reading this message then you’re living proof that contact form advertising works!
    We can send your ad to people via their Website Contact Form.

    IF YOU ARE INTERESTED, Contact us => lisaf2zw526@gmail.com

    Regards,
    Truong

  3. Latanya Donaldson comments:

    Good day

    I Will Provide 20.000 Backlinks From Blog Comments for transformationpowertools.com,
    By post 400k blog comments from where you will receive at least 20.000 live links.

    – Use unlimited URLs
    – Use unlimited keywords (anchor text)
    – All languages supported
    – Link report included

    Boost your Google ranking, get more traffic and more sales!

    IF YOU ARE INTERESTED
    CONTACT US => lisaf2zw526@gmail.com

  4. Stephen O'Dea comments:

    Hi there

    I just checked out your website transformationpowertools.com and wanted to find out if you need help for SEO Link Building ?

    If you aren’t using SEO Software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites.

    With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.

    IF YOU ARE INTERESTED, We offer you 7 days free trial
    CONTACT US HERE ==> dindinaa421@gmail.com

    Regards,
    Best Seo Software

  5. Zakir Sajib comments:

    Hi

    i need help. How can i display all the child pages of all existing parent pages (if exists). But not from specific parents. I mean from all parents if they have child just display those child.
    I’m struggling following code:

    $post->ID;*/?>

    Rest of the code…………

    Now Should I use wp_list_pages or get_pages or get_posts or query_posts ???

    Please help.

  6. Pingback: Tweets that mention Finding Exact Information on Wordpress Functions | TransformationPowerTools | for personal growth and transformation -- Topsy.com

    g+

    30/09/2010 | […] This post was mentioned on Twitter by Ross Arntson and Ross Arntson, Mark Sumpter. Mark Sumpter said: Finding Exact…

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.