• Resolved Exilant

    (@exilant)


    Hi Elliot!

    Actually im creating a widget and a page with author boxes and links to their archive Pages.

    Now im trying to link them dynamicly – like this..

    href=”/undefined/author/[user name]”>Artikel dieses Authors

    but user name is showing without “-” between..

    could you make a author-link shortcode – or a second user name type?

    best regards

    Patrick, Berlin

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Exilant

    (@exilant)

    ^^ im really confused, that i cant find this Function for Loop and Author..

    I have absolutly no Idea, how you are doing that, but the php would be <?php the_author_posts_link(); ?>

    maybe i`m just stupid, and cant find it : /

    b.t.w what is the best way to display a 5 columns Layout with the “author boxes”? is it possible to do it, like you did it with the post-columns?

    Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    user name is showing without “-” between..

    I tested this, and found that user login names can include empty space ” ” in them. So, the author posts archive URL is sometimes different from user login names.

    In the newest plugin update, I added two fields:

    [user archive-link] will display the user’s full name linked to author posts archive. [user archive-url] will output the author posts archive URL.

    Plugin Author Eliot Akira

    (@miyarakira)

    About creating a 5-column layout – there’s a basic feature to make columns using [loop] but it’s quite limited and not responsive. The thing is, this plugin doesn’t load any JavaScript or CSS on the frontend, and I want to keep it that way.

    So, for now, I recommend using HTML & CSS. It will be the most compact and flexible solution. Here’s a quick example:

    <div class="column-container">
      [users]
        <div class="each-column">
          ...content..
        </div>
      [/users]
    </div>

    Then in your style.css:

    .column-container:after {
      content: "";
      clear:both;
      display: block;
    }
    .each-column {
      float: left;
      width: 20%;
    }
    @media (min-width:401px) and (max-width: 800px) {
      .each-column {
        width: 50%;
      }
    }
    @media (max-width: 400px) {
      .each-column {
        width: 100%;
      }
    }

    It will start with 5 columns, then 2 and 1 for smaller screens. You’ll probably want to adjust it according to your needs. (You may also need to set fixed height for all boxes)

    It would be nice to have a simpler solution. I’m planning a plugin add-on for building layouts, but it’s still in progress.

    Thread Starter Exilant

    (@exilant)

    awwwww ^_^ so nice! Thank you a lot, Elliot!

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

The topic ‘Link to Authors Posts’ is closed to new replies.