Forums

Function to call functions? Or is there a better way? (3 posts)

  1. mrwok
    Member
    Posted 2 years ago #

    Maybe this has been done before....
    Or there is a way to internally accomplish this in WordPress...

    But i want to write a wordpress function to be used by the loop that i can control the order of output of functions being called in that loop...

    For example...

    sometimes, i'd like

    the_content() to come before the_title()
    instead of it being the opposite.

    maybe this function would take an argument that represented the order of the the functions being called....

    .......................................................

    Any thoughts anyone...

    Cheers,
    Wok

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Why not create a custom page template or modify the Loop in an existing template file?

  3. mantone
    Member
    Posted 2 years ago #

    I suppose you're right, but i end up with to many templates for the amount of variation i'm looking for,

    It be nice, on the user side, to control the output order of the content.

    If there was a metabox on the admin side for every post, that you could use to order the output it would be useful i think, on a post by post basis.

    I figure a function that lets me control this would help me create this plugin. I suppose i could use the filters to accomplish this...

    hmmm....gonna contemplate this one a little more.

Topic Closed

This topic has been closed to new replies.

About this Topic