Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Mike

    (@mchlsync)

    Hi @gutenbergslider

    Any update?

    • This reply was modified 1 year, 9 months ago by Mike. Reason: try to tag Gutenberg Slider but coudn't tag
    • This reply was modified 1 year, 9 months ago by Mike.
    Thread Starter Mike

    (@mchlsync)

    Hi @molongui . Thank you for your support. I have tried a few plugins and it seems like Co-Author Plus works well for me. All good now. Thanks.

    Thread Starter Mike

    (@mchlsync)

    Thanks. Yes. I tested it and didn’t work. But the fox theme is complicated so I am trying something simple like 2023 theme. I am assuming there will be more people who have tried 2023 theme than the Fox. So I might get more feedback. And also, I am curious about how this plugin works. I like the way to create the user and I like the default style of the author box. My client is happy with that too. If the byline works then I can even suggest getting the pro version.

    I will have a look how to create the child theme. Thansk for givng me the advice. How can I add the template tag in the child theme?

    Functions.php of My child theme.

    Do I just need to add get_the_molongui_author` to override the original “fox_post_author” function? The problem is that I don’t know how to get $pid, $seperator and etc. from “fox_post_author” function since it has only one parameter (#show_avator).

    if ( ! function_exists( ‘fox_post_author’ ) ) :
    /**
    
    Author
    —————————————————————— */
    function fox_post_author( $show_avatar = false ) {
    // YOUR CONTENT GOES HERE
    }
    endif;

    Fox Theme

    
    if ( ! function_exists( 'fox_post_author' ) ) :
    /**
     * Author
     * ------------------------------------------------------------------ */
    function fox_post_author( $show_avatar = false ) {
        
        // global $post;
    	// $author_id = $post->post_author;
        
        // Finally, let's write all of this to the page.
    	echo '<div class="fox-meta-author entry-author meta-author" itemprop="author" itemscope itemtype="https://schema.org/Person">';
        
        if ( function_exists( 'get_coauthors' ) ) {
            $authors = get_coauthors();
        } else {
            global $post;
            $author_id = $post->post_author;
            $authors = [ get_userdata( $author_id ) ];
        }
            
        $count = 0;
        foreach ( $authors as $user ) {
            
            $author_id = $user->ID;
            $count++;
            
            $link = get_author_posts_url( $user->ID, $user->user_nicename );
            
            // echo '<span class="byline"> ' . sprintf( fox_word( 'author' ), fox_coauthors_posts_links() ) . '</span>';
            // return;
            
            // echo '<span class="meta-author-item">';
        
            if ( $show_avatar ) {
                echo '<a class="meta-author-avatar" itemprop="url" rel="author" href="' . esc_url( $link ) . '">';
                echo get_avatar( $author_id, 80 );
                echo '</a>';
            }
            
            $by = 1 == $count ? fox_word( 'author' ) : '%s';
    
            echo '<span class="byline"> ' . sprintf(
                /* translators: %s: post author */
                $by,
                '<a class="url fn" itemprop="url" rel="author" href="' . esc_url( $link ) . '">' . $user->display_name . '</a>'
            ) . '</span>';
            
            // echo '</span><!-- .meta-author-item -->';
            
        }
        
        echo '</div>';
        
    }
    endif;
    
    /**
     * Co-Authors
     * @since 4.6.2
     * ------------------------------------------------------------------ */
    /**
     * Outputs the co-authors display names, without links to their posts.
     * Co-Authors Plus equivalent of the_author() template tag.
     *
     * @param string $between Delimiter that should appear between the co-authors
     * @param string $betweenLast Delimiter that should appear between the last two co-authors
     * @param string $before What should appear before the presentation of co-authors
     * @param string $after What should appear after the presentation of co-authors
     * @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
     */
    function fox_coauthors( $between = null, $betweenLast = null, $before = null, $after = null, $echo = true ){
        return coauthors__echo('display_name', 'field', array(
            'between' => $between,
            'betweenLast' => $betweenLast,
            'before' => $before,
            'after' => $after
        ), null, $echo );
    }
     
    /**
     * Outputs the co-authors display names, with links to their posts.
     * Co-Authors Plus equivalent of the_author_posts_link() template tag.
     *
     * @param string $between Delimiter that should appear between the co-authors
     * @param string $betweenLast Delimiter that should appear between the last two co-authors
     * @param string $before What should appear before the presentation of co-authors
     * @param string $after What should appear after the presentation of co-authors
     * @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
     */
    function fox_coauthors_posts_links( $between = null, $betweenLast = null, $before = null, $after = null, $echo = false ){
        return coauthors__echo('coauthors_posts_links_single', 'callback', array(
            'between' => $between,
            'betweenLast' => $betweenLast,
            'before' => $before,
            'after' => $after
        ), null, $echo );
    }

    Sorry about that screenshot. You are right. I mixed it up. I networked-deactivate it but seems I need to deactivate in the subsite too. Thanks for that.

    I have tried with 2023 again but still doesn’t work. but don’t worry about it. If I can help some help to fix up in the Fox theme then I am good to go. Thanks.

    2023

    Thread Starter Mike

    (@mchlsync)

    @molongui Thanks. I tested on the demo with 2023 theme and it works. I am not sure if there is an custom code. I have a fresh download of 2023 theme and it doesn’t work. But It work with 2021 theme.

    All of my plugins are disabled except Molongui.

    This is what I see with 2023 Theme. (it doesn’t work)

    Here is what I see with 2021 Theme. (It works.)

    So this is for the 2023 theme. According to this https://www.molongui.com/help/byline-template-tags/, there might be some themes that are not compatible. I am not planning to use the 2023 theme in my site but I am just trying to find the theme compatiable issue that i have with the Fox theme.

    I got the reply from the author of the Fox mag theme. I could try that but seems like if I update the latest version of the Fox them, I will have to manually update it again.

    Hi there,

    Yes, The Fox doesn’t use native WordPress author function, because it needs to support CoAuthor Plus plugin.

    You can rewrite function fox_post_author in your child-theme/functions.php file

    Like this:

    if ( ! function_exists( ‘fox_post_author’ ) ) :
    /**

    • Author
    • —————————————————————— */
      function fox_post_author( $show_avatar = false ) {
      // YOUR CONTENT GOES HERE
      }
      endif;
      That’s the best solution in this case I think

    Kind regards,

    Cuong Tran

    Thread Starter Mike

    (@mchlsync)

    Thanks. @molongui

    Did you use “Twenty Twenty-Three theme”? Does it work with a free version of Molongui plugin? It looks like Twenty Twenty-One plugin but not with Twenty Twenty-Three theme. I couldn’t install Twenty Twenty-Three theme. on the demo site.

    We are using the Fox theme (https://themeforest.net/item/the-fox-contemporary-magazine-theme-for-creators/11103012). I also contacted the author of that theme as well.

    Thread Starter Mike

    (@mchlsync)

    oh. got it. i need to have at least one post. otherwise, got 404. thanks.

    Forum: Plugins
    In reply to: Looking for plugins updates
    Thread Starter Mike

    (@mchlsync)

    Thanks.

    I have one question. I know Akismet, SyntaxHighlighter and WordPress.com Stats from automattic. but they don’t even update their plugins? I didn’t see them in the list…

    Forum: Plugins
    In reply to: Widget plugin WordPress 2.3
    Thread Starter Mike

    (@mchlsync)

    okay.. thanks.. it is in wp-includes..

    Thread Starter Mike

    (@mchlsync)

    Thanks. Michael.

    Forum: Fixing WordPress
    In reply to: Import error
    Thread Starter Mike

    (@mchlsync)

    thanks .. it works… i was updating the php.ini in wrong path.. (C:\xampp\php\php.ini is wrong one.. ) I should have updated the php.ini file under C:\xampp\apache\bin\. ??

    thanks a lot for your help.. Michael..

    Thread Starter Mike

    (@mchlsync)

    I think get_recentpost(numofposts) can be used for that purpose…..

    Thread Starter Mike

    (@mchlsync)

    Any Idea why it’s happening like that?
    Thanks in advance.

    Thread Starter Mike

    (@mchlsync)

    I got this error..

    Import RSS

    1. Importing post…Done !
    2. Importing post…Done !
    3. Importing post…Done !
    4. Importing post…Done !
    5. Importing post…Done !
    6. Importing post…Done !
    7. Importing post…Done !
    8. Importing post…Done !
    9. Importing post…Done !
    10. Importing post…Done !
    11. Importing post…Done !
    12. Importing post…Done !
    13. Importing post…Done !
    14. Importing post…Done !
    15. Importing post…Done !
    16. Importing post…Done !
    17. Importing post…Done !
    18. Importing post…
    Fatal error: Maximum execution time of 30 seconds exceeded in D:\Personal\OpenSource\wordpress\wp-includes\class-IXR.php on line 513

Viewing 13 replies - 1 through 13 (of 13 total)