New Landing How can we help? Themeforest Theme Support Supreme Author name not linking to author page

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Supreme
  • #85659
    alhkong
    Member
    Post count: 16

    Author name under post-carousel and blog section isnt linking to author page, it is linking to homepage instead.

    In posts-carousel.php i found this piece of code which pulls author name and date and i need it modified to link to author page:

    if ($show_details == “yes”) {
    $items .= ‘<div class=”post-item-details”>’. sprintf(__(‘By %1$s on %2$s’, ‘swiftframework’), $post_author, $post_date) .'</div>’;
    }

    Thanks!

    #85745
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code :
    while ( have_posts() ) {
    Replace with
    while ( have_posts() ) { the_post();
    Hope that should work and let me know your feedback.

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #85778
    alhkong
    Member
    Post count: 16

    I already have that code snippet on line 51 in posts-carousel.php, it looks like this:
    while ( have_posts() ) {

    the_post();
    and it still isnt working, author name is linking to homepage…

    This is the code, can you take a look:
    http://pastebin.com/Gf9vE4TM

    #85842
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide us a site link where we can that in action?

    Best Regards,
    Rui

    #85847
    alhkong
    Member
    Post count: 16

    Sure thing, lustrelife.com/news is the site.

    Only thing where it works is “Top Posts” section on the right, but that is plugin “WordPress popular posts”.

    In post carousel and in blog it isnt working

    #85949
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Can you provide us access to your site by private reply.

    thanks

    #85954
    alhkong
    Member
    Post count: 16
    This reply has been marked as private.
    #86025
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I notice that you have WP Super Cache installed.
    Whenever you do any change you must clear the cache of WP Super Cache.

    Best Regards,
    Rui

    #86122
    alhkong
    Member
    Post count: 16

    Yes, i know, otherwise changes wont show.
    Any luck with trying to make the author link work?

    #86162
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have changed 56 line of code
    $post_author = get_the_author_link();
    to
    $post_author = '<a href="'.get_author_posts_url( get_the_author_meta( 'ID' ) ).'" >'.get_the_author_meta('display_name').'</a>';

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #86392
    alhkong
    Member
    Post count: 16

    Awesome, thank you Mohammad, it works ๐Ÿ™‚

    Just one more small question.Which file do i need to edit to make the same change to the category page (http://lustrelife.com/news/category/shopping/) because author link isnt working there.

    Take care!

    #86394
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please edit standard.php at /includes/post-formats/ .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #86422
    alhkong
    Member
    Post count: 16

    Hey Mohammad, thanks a bunch for your help.

    I did edit that file and uploaded it back, but the author link is still linking to the homepage (i am guessing it is taking author website instead of author page).

    Change is done properly (here is a code of standard.php file:http://pastebin.com/57pL2SSt) but it still isnt showing up…Any advices?

    #86476
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue. I edited standard.php at /supreme-child/includes/post-formats/.
    Thanks

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register