Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter akdream

    (@akdream)

    Oh my god! I’m so sorry! Can’t believe I deactivated it! Sorry! Totally my fault. My apologies.

    Thread Starter akdream

    (@akdream)

    Good to know you didn’t get yeterday’s E-Mail 🙂
    I tried sending it again from another account, hope it worked now.

    Thread Starter akdream

    (@akdream)

    Did you see it on the two links I provided you with by e-mail or is it just me?

    Thread Starter akdream

    (@akdream)

    On the fresh installation I’ve setup today just to test Pods I have only Pods installed, no other plugins. On the other ones I have Co-Authors, bbpress, advanced excerpts, WP eMember, eStore, … would you be willing to send me an e-mail? (see address in notification message you got from the forum)

    No errors. Worked like a charm yesterday all day long on multiple websites. Today all of a sudden on none.

    Thread Starter akdream

    (@akdream)

    Hi Scott

    I tried it under WP 4.9.10; WP 5.2.2 with Classic Editor enabled, with Disable Gutenberg enabled, with them disabled and Gutenberg enabled, with a fresh installation of WP 5.2.2 on a totally new database (never used that server before, based in Switzerland the other one in the US) and no other plugin but Pods enabled. Just tried on a virtual machine installation of Windows 10 and Firefox, tried WiFi/Mobile… always the same result.

    Pods version is 2.7.12

    I’m not sure what you’re trying to achieve and I’m not good with codes. However since no one else answered you: WordPress automatically generates an archive page for each author/contributor reachable under

    yourdomain.com/blog/author/author’s-slug/
    or
    yourdomain.com/author/author’s-slug/
    where author’s-slug is to be replaced with the author’s slug.

    Using Co-Authors Plus the post is added to all the co-author’s archives who co-authored the post. The archive pages can be customised to display the author’s name and description/bio. So you’d have name, description/bio and all the author’s posts if that’s what you’re trying to achieve.

    Code would be

    <?php if (get_the_author_meta('description')) : ?>
        <div class="author-box">
            <h3 class="author-name"><?php esc_html(the_author_meta('display_name')); // Displays the author name of the posts ?></h3>
            <p class="author-description"><?php esc_textarea(the_author_meta('description')); // Displays the author description added in Biographical Info ?></p>
        </div>
    <?php endif; ?>

    Needs to be put in archive.php where you want name and description/bio to appear. Styling:

    /*---Author Box in Archive---*/
    .author-box {
        background-color: #fff;
        padding: 20px;
        margin: 0 0 40px;
        display: inline-block;
        width: 100%;
    }
    .author-box .author-name {
        font-weight: bold;
        clear: none;
        display: inline;
    }

    Under Appearance > Customize > Additional CSS

    I posted a code to have all author’s name, link to author’s archive and author’s description/bio displayed at the bottom of the posts on this topic: https://wordpress.org/support/topic/possible-to-list-all-authors-biographies-in-the-footer/ might be helpful for you too.

    Regards,
    Cédric

    Hi,

    I found myself in the position of wanting to do the same thing: displaying all the Author names and biography (descriptions) at the bottom of the post. I’m really not good at codes so my code may not be perfect but it works (at least it does for me).

    Here’s what I’ve come up with:

    <?php if ( function_exists( 'get_coauthors' ) ) {
    
      $coauthors = get_coauthors();
      foreach ( $coauthors as $coauthor ) {
        ?>
        <div id="authorboxsingle" class="authorboxsingle">
        <p><span class="authorboxsinglename"><?php echo ( $coauthor->display_name ); ?></span> <span class="authorboxsinglelink">(<a href="<?php echo get_author_posts_url( get_the_author_meta( '$coauthor->ID' ), get_the_author_meta( '$coauthor->user_login' ) ); ?><?php echo ( $coauthor->user_login ); ?>">See all</a>)</span></p> 
        <p class="authorboxsinglebio"><?php echo ( $coauthor->user_description ); ?></p>
        </div>
        <?php
      }
    // treat author output normally
    } else {
    
      ?>
        <div class="authorboxsingle">
            <p><span class="authorboxsinglename"><?php esc_html(the_author_meta('display_name')); ?></span> <span class="authorboxsinglelink">(<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>">See all</a>)</span></p>
            <p class="authorboxsinglebio"><?php esc_textarea(the_author_meta('description')); ?></p>
        </div>
    
      <?php
    } ?>

    Styling:

    /*---Author Box in Blog Post (Blog post only)---*/
    #authorboxsingle {
    	display: none;
    }
    .single-post #authorboxsingle {
    	display: block;
    }
    .authorboxsingle {
    	background-color: #fff;
      padding: 20px;
      width: 100%;
    }
    .authorboxsinglename {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    }
    .authorboxsinglelink {
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.4;
    }
    .authorboxsinglelink a {
    font-size: 0.9rem;
    font-weight: normal;
    }

    The first part needs to be pasted in single.php file of the theme you’re using where you want the bio to be displayed. The second part under Appearance > Customize > Additional CSS.

    The code displays author’s name, a link to see all the author’s posts and the bio. In case Co-Authors Plus is disabled it just shows the name, link and bio of the first author.

    In my case I only wanted the names, links and bios only to be displayed in single-posts (main blog) and not in custom posts. That’s what this bit does:

    #authorboxsingle {
    	display: none;
    }
    .single-post #authorboxsingle {
    	display: block;
    }

    I hope it works for other people too and hope I could help by sharing the code. If anyone has any improvements let me know.

    Kind regards,
    Cédric

    Thread Starter akdream

    (@akdream)

    To me it was like Akismet “forgot” how to recognize spam. So more than 80 comments slipped through within less than 3 hours but once I told it that all those comments were spam it “learned” recognizing it again.

    Thread Starter akdream

    (@akdream)

    Thank you for your answer. Unfortunately I didn’t get it… 🙁

    Anyway I ended up with having

    <?php if (is_single()) { ?>
    <style type="text/css">
    div.excerpt {display:none;}
    </style>;
    <?php } ?>

    posted right before the closing head tag in the header.php

    So if I add
    <div class="excerpt">Here the part I'd like to show up on the main blog page</div><!--more Read more...-->
    to my post all the content in the div will be displayed on the main blog page but not in the post itself once you view it as a single post. No matter what the div contains and no matter what post it’s on.

    That’s the result of my three hours of research… Maybe it’s not the best solution to achieve what I wanted to achieve but it works the way I wanted it to work 🙂 At least I now can control what displays in the main blog page and what doesn’t.

    Still don’t know what the effect of this on the RSS Feed but I don’t really mind about the RSS Feed…

    Regards,
    Tim

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