ThemeShaper Forums » Thematic


(6 posts)
  • Started 12 years ago by murky
  • Latest reply from murky
  • This topic is not resolved
  1. Hi,

    I've written a custom function for murkymatic (thematic child theme)
    and I want to hook it into the theme using

    I can do this, but unfortunately it destroys the existing
    thematic_postfooter() settings, so I lose all the tags, categories and
    the like

    Ideally, what I'd like to do is:

     --- Custom theme
    Thematic thematic_postfooter()

    Essentially in my functions.php I have:

    function childtheme_article_series() {
    // add_action('thematic_postfooter','childtheme_article_series');

    When I uncomment the add_action, it puts in my stuff okay, but takes
    out the thematic stuff that I want to keep! I could reproduce the
    existing function in mine with cut and paste, but that removes the
    advantage of the theme framework.

    Irrelevantly, my function shows other posts in the same series of posts - it could just as easily do something like showing and digg bookmark links.

    The question is this: Am I missing something obvious?

    Ideally, one of several things could happen:

    1) I hook my function before thematic_postfooter() thus keeping this functionality (is this possible already? Does thematic need an extra hook? Does WP itself have a hook that executes after the_content()?)
    2) I tell my function 'okay, now do thematic_postfooter()'
    3) I copy the functionality of thematic_postfooter into the foot of my function (I tried this and it upset the server, didn't have time to work out why last night - I think this is the least good option as it 'forks' the code and would need updating as thematic changes.

    The function itself can be seen here:

    function childtheme_article_series() (currently starting on line 77)

    This is my current 'brick wall', any help gratefully received etc.

    The murkymatic theme can be seen here:

    Posted 12 years ago #
  2. Website post on this topic, which may provide additional information about the problem.

    Posted 12 years ago #
  3. Have you tried simply calling thematic_postfooter() INSIDE your childtheme_article_series() function ?

    That way you can use add_action('thematic_postfooter','childtheme_article_series'); without losing content nor forward compatibility.

    Posted 12 years ago #
  4. To be honest, I simply don't know how.

    I've added thematic_postfooter(); as the last line of the function, and get this:

    500 Server Error

    A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.

    I think it's due to recursion.

    Posted 12 years ago #
  5. This is one of those things that I know *should* be relatively straightforward!

    Posted 12 years ago #
  6. (For clarity, before the final } I put thematic_postfooter(); on its own line)

    Posted 12 years ago #

RSS feed for this topic


You must log in to post.