I'm having a conceptual problem

Community Forums Forums General Discussion I'm having a conceptual problem

This topic is: not resolved

This topic contains 4 replies, has 5 voices, and was last updated by  noxbane 1 year, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #932

    theMikeD
    Participant
    Post count: 20

    I’m new to genesis and I admit I’m having what I think is a conceptual problem with hooks and so on. Let me try to explain.

    Lets say for example that I want to programatically remove the comments from a post. Google tells me that to do this I need to add this
    remove_action( ‘genesis_after_post’, ‘genesis_get_comments_template’ );
    before calling genesis(); Fine. But how would I know this if not for google?

    The reason I ask is that there are many many hooks listed in the hooks guide, but none of them list the actions they use.

    For example, from the hook guide:

    genesis_after_post
    This hook executes after each post in all loop blocks (outside the post_class() div).

    Thats an accurate description. But where do I find a list of the actions that are used in this section, such as genesis_get_comments_template?

    Without this information, it’s impossible to target the bits I want to modify or turn off, because the remove_action fails without any form of error; if the action I’m trying to turn of doesn’t exist, nothing happens.

    Another example: google tells me that to remove the post meta I add the following line:
    remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );
    How would I be able to determine something like this for myself? I’m happy to look through the genesis code but I need to know what I’m looking for.

    If anyone can describe how I can go about finding this information, I would be very grateful.

    …Mike

    • This topic was modified 1 year, 8 months ago by  theMikeD.
    • This topic was modified 1 year, 8 months ago by  theMikeD.
    #934

    SoZo
    Moderator
    Post count: 1573

    I recommend starting off by reading through Nick’s Genesis Explained series of posts.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #1023

    nickthegeek
    Keymaster
    Post count: 751

    I was going to recommend that same series. I try to break it down and follow more or less the same path I took as I learned Genesis with an emphasis on learning how to use the files to find things like that.

    #1103

    netviper
    Participant
    Post count: 24

    I have an issue with that stuff too.  I haven’t found anywhere – other than some of nicks stuff – that explains how to use any of the hooks and filters.  It is very different even for people that have used WP for years that have never before needed to do that.

    #1130

    noxbane
    Participant
    Post count: 1

    Although it doesn’t list the actions on each hook (which would be great) the Genesis Visual Hook Guide is a good resource for seeing where certain hooks happen in the page structure.   But a listing of each action that takes place on each hook would be a great resource.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.