Home Forums WoodMart support forum Split: To add the author’s image and name to both the blog page and single post?

Split: To add the author’s image and name to both the blog page and single post?

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #605507

    meiotrevo.pt
    Participant

    I have exactly the same problem and I have already done all the instructions given before and nothing has resolved it.

    In the archive page it works perfectly, in the single post it doesn’t work.

    What could it be?

    Attachments:
    You must be logged in to view attached files.
    #605673

    Luke Nielsen
    Keymaster

    Hello,

    I would like to request temporary admin access to the website to take a better look at the issue there.

    Thank you in advance.

    Kind Regards

    #605735

    meiotrevo.pt
    Participant

    Yes, of course!

    #605802

    Luke Nielsen
    Keymaster

    Hello,

    Okay, I see. Did you check how it works on the default Storefront theme?

    Looking forward to hearing back from you!

    Kind Regards

    #605804

    meiotrevo.pt
    Participant

    No, I didn’t change the themes because I’m afraid of losing all the small settings I made in woodmart.. is there another possibility?

    #605808

    Luke Nielsen
    Keymaster

    Hello,

    In this case, I suggest you clone your website and move it to the staging platform so that your live site will not be affected.

    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Kind Regards

    #605833

    meiotrevo.pt
    Participant

    I would like blog posts to have this structure… but I can’t… that way the name would be more visible. Is it possible to know how I can do it?

    Attachments:
    You must be logged in to view attached files.
    #605835

    meiotrevo.pt
    Participant

    Sorry! I’ve already managed to change it!

    Now I just don’t understand why in the single post, the page title is “Full body”. Is it possible to put the title of the post in this section and the rest below?

    Attachments:
    You must be logged in to view attached files.
    #605845

    Luke Nielsen
    Keymaster

    Hello,

    Please send me the URL link to that blog page so I can look closer at it.

    Thank you in advance.

    Kind Regards

    #605851

    meiotrevo.pt
    Participant
    #605854

    Luke Nielsen
    Keymaster

    Hello,

    It looks well on my side – https://take.ms/YpxRL

    Try to clear the browser cache.

    Kind Regards

    #605855

    meiotrevo.pt
    Participant

    Yes, I changed the structure again because I prefer this structure.

    The problem is that in the Single post design, if I choose “Large Image”, which is what it is now, the author name nor the avatar appears.

    If I choose the “Default” option, the author name and avatar appear, but the page title does not appear with the title of the post, but with “Full Blog”.

    I want the author’s name and avatar to appear in the Large Image option.

    #605980

    Luke Nielsen
    Keymaster

    Hello,

    Yep, the author’s name is not defined in your case. May I disable 3rd party plugins for testing?

    Thank you in advance.

    Kind Regards

    #606019

    meiotrevo.pt
    Participant

    Hello!

    I’ve already deactivated all the plugins, one by one, to see if there was any incompatibility… and nothing. Everything the same 🙁

    #606400

    Luke Nielsen
    Keymaster

    Hello,

    Add the code below into the “functions.php” file in your child theme. Then clear the cache and recheck the issue.

    add_action('woodmart_page_title_after_title', function () {
    	global $post, $authordata;
    
    	$authordata = get_userdata( $post->post_author );
    });

    Kind Regards

    #606462

    meiotrevo.pt
    Participant

    Thank you!!! It’s solved!

    #606471

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for your message! We’re happy to hear that the issue has been resolved. If you need any further assistance or have any other questions in the future, don’t hesitate to reach out. We’re always here to help!

    Kind regards

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

The topic ‘Split: To add the author’s image and name to both the blog page and single post?’ is closed to new replies.