Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ga Satrya

    (@satrya)

    That’s a great idea, but unfortunately, you can’t move the post author position with current plugin version. I don’t know when, but it would be a great addition to the plugin in the future.

    Thanks!

    Thread Starter Art Project Group

    (@artprojectgroup)

    We did it with a customisation on version 0.9.9.7, where we are stuck ??

    Please let me know when you do or if you need help.

    Best regards.

    Plugin Author Ga Satrya

    (@satrya)

    Why not try to re-implement the changes with the new version? If you remember the changes, post here, I may, can help to re-implement it.

    Thread Starter Art Project Group

    (@artprojectgroup)

    Of course.

    Version: 0.9.9.7
    File: /includes/functions.php
    Line: 170
    From:
    $html .= '<h3 class="rpwe-title"><a href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'recent-posts-widget-extended' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark">' . esc_attr( get_the_title() ) . '</a></h3>';
    To:
    $html .= '<h3 class="rpwe-title"><span>'.get_the_author().'</span><a href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'recent-posts-widget-extended' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark">' . esc_attr( get_the_title() ) . '</a></h3>';

    I can replicate it in the line 122 of new version file, but the best way is adding an option to show or not the author.

    Best regards.

    Thread Starter Art Project Group

    (@artprojectgroup)

    Don’t worry, I’ll add it by your filter rpwe_post_title_wrap_open.

    add_filter( 'rpwe_post_title_wrap_open', function() {
        return '<span>' . get_the_author() . '</span><h3 class="rpwe-title">';
    } );

    Best regards.

    Plugin Author Ga Satrya

    (@satrya)

    To be honest, I forgot I added that filter in version 2.0.0 LOL. Yes, I’ll introduce more filters in the future to make the output more customizable. Glad you solve it ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Author option’ is closed to new replies.