Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vicchi

    (@vicchi)

    What needs to be done in order to make the box go above title of the post?

    Depends on what theme (and possibly framework) you’re using. The standard the_title hook would probably work with a call to one of WP Biographia’s template tags to prepend the Biography Box before the post title itself.

    Is there any way I can change the hook to genesis_before_post_title or genesis_before_post?

    Err. Not too sure I understand you … the hook … which hook?

    -Gary

    Thread Starter Vajrasar Goswami

    (@vajrasar)

    Am sorry. I should have been descriptive.

    Theme: News Theme
    Framework: Genesis

    I want to show Author Box above post title and that too only for “Contributors”.

    So I thought if something needs to go above post title then I would have coded it using the genesis_before_post_title action hook. This was the reason I asked that, can I put this hook somewhere in the code of plugin (if it is possible). Or if there is any other easy way?

    Thanks for the reply.

    Plugin Author vicchi

    (@vicchi)

    I’m not sure what the difference (or firing order) is between the WordPress the_title hook and the Genesis genesis_before_post_title hook. They looks to be pretty much synonymous.

    I’d advise strongly against modifying the plugin’s code itself; your changes will get overwritten with any new versions and also I can’t give support for a code base which has been modified from a released version.

    The plugin’s template tags, used via either an addition to your theme’s functions.php or via a plugin which supports custom code fragments, is definitely the way to go.

    You should also be able to use the WordPress role and capabilities API calls to determine whether the current post or page is for a user who has the Contributor role.

    Bottom line; it’ll need a little bit of custom coding, but this is relatively straightforward to achieve as a site specific customisation, but not as a modification to the plugin’s code base.

    -Gary

    Thread Starter Vajrasar Goswami

    (@vajrasar)

    Actually, this is what I intend to achieve – https://i.imgur.com/Ae7oO7r.png

    Plugin Author vicchi

    (@vicchi)

    That’s totally possible by the means (API calls etc) I mentioned in my previous post; but it will need some custom coding.

    -Gary

    Plugin Author vicchi

    (@vicchi)

    Haven’t heard back from you on this so I’m assuming this is now fixed; marking as resolved.

    -Gary

    Thread Starter Vajrasar Goswami

    (@vajrasar)

    Sorry about the delay in reply. I actually fetched the required stuff of the relative authors by custom code snippet in the hook I desire.

    Was on deadline so never got chance to implement what you suggested. Thanks a lot for the replies though. Will include this in the upcoming project.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘To display box above Title’ is closed to new replies.