Forum Replies Created
-
AuthorPosts
-
Would this method be applied with different category layout outputs like BLOG, grid layout, masonry, etc? Would I be able to add/change code about author email to excerpts in the said layouts, and can they be found in Enfold/config-templatebuilder/avia-shortcodes/magazine.php file
Thanks again for all your help.
Wanted to update.
I believe I found the solution to attach the author name of post to excerpt.
With your help of course..i came up with this solution….
$author_output .= "<span class='av-magazine-author-email'> ". get_the_author_meta( 'user_email', $entry->post_author ) . "</span>";
Adding the $entry->post_author was what it needed.
I will now try to do the mailto link….any help would be APPRECIATED :)
another question…can this method be applied different category layout outputs like BLOG, grid layout, masonry, etc.
- This reply was modified 8 years, 3 months ago by justinfinocchiaro.
HI Yigit,
Thanks for the instructions. It works, but it seems that it is only displaying my email instead of author email. I created the homepage which is why i think it is displaying mine…instead of the author who created the individual articles.
The hyperlinking is a bit difficult as well…i see that php is not involved but the global$. so…i’m a bit at a loss to linking individual author emails to each post. (as you can see from bottom)
Email the author: <a href="mailto:<?php echo get_the_author_meta( 'user_email' ); ?>"><?php the_author_meta( 'display_name' ); ?></a>
Thanks again!
- This reply was modified 8 years, 3 months ago by justinfinocchiaro.
Hi Rikard,
I would like to place the email next to author in excerpt area….you’ll notice on homepage i have products listed on homepage in magazine style.
Thanks,
mikeUsing LayerSlider WP
Page that has slider: http://alfacomex.com/home/
Thanks!Thanks for the reply Elliott.
As this page updates with the latest posts, is there a script that I can use to generate my desired result.
Your suggestion I believe will me make the page static instead of dynamic, correct?
Any guidance will do and I think I can take it from there….i think…
Thanks in advance!
I am using the latest: 2.6.1
i also found this php error today:
PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/comprarmagazine/public_html/comprarmag.com/wp-content/themes/enfold/functions-enfold.php on line 305Thanks in advance
-
AuthorPosts