• Resolved scallemang

    (@scallemang)


    Hi there,

    I’m wondering if it is possible for Twentig’s post meta templates to output co-authors as stored with the Co-Authors Plus plugin. I have a 2021 child theme and can override parent theme functions there, I assume, but since this piece of the header is rendered by twentig_twentyone_posted_by, I’m not a strong enough dev to know if I can modify that in my theme w/o running into the ‘re-declared function’ error. Any suggestions appreciated. Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    We’ve released Twentig 1.3.1, which includes a filter hook to the post author output.

    You can add the following code inside your child theme:

    function custom_posted_by( $html ) {
        // enter your php code here
    }
    add_filter ( 'twentig_twentyone_posted_by_html', 'custom_posted_by' ); 

    If you enjoy Twentig, please rate it. It would really help me out 🙂
    Tom

Viewing 1 replies (of 1 total)

The topic ‘Compat with Co-Authors Plus plugin’ is closed to new replies.