if (!function_exists(‘mh_magazine_related_content’)) {
function mh_magazine_related_content() {
global $post;
$mh_magazine_options = mh_magazine_theme_options();
$tags = wp_get_post_tags($post->ID);
if ($mh_magazine_options[‘related_content’] === ‘enable’ && $tags) {
$tag_ids = array();
foreach($tags as $tag) $tag_ids[] = $tag->term_id;
$related = new wp_query(array(‘tag__in’ => $tag_ids, ‘post__not_in’ => array($post->ID), ‘posts_per_page’ => 3, ‘ignore_sticky_posts’ => 1, ‘orderby’ => ‘rand’));
if ($related->have_posts()) {
echo ‘<section class=”mh-related-content”>’ . “\n”;
echo ‘<h3 class=”mh-widget-title mh-related-content-title”>’ . “\n”;
echo ‘<span class=”mh-widget-title-inner”>’;
esc_html_e(‘Related Articles’, ‘mh-magazine’);
echo ‘</span>’;
echo ‘</h3>’ . “\n”;
echo ‘<div class=”mh-related-wrap mh-row clearfix”>’ . “\n”;
while ($related->have_posts()) : $related->the_post();
echo ‘<div class=”mh-col-1-3 mh-posts-grid-col clearfix”>’ . “\n”;
get_template_part(‘content’, ‘grid’);
echo ‘</div>’ . “\n”;
endwhile;
echo ‘</div>’ . “\n”;
echo ‘</section>’ . “\n”;
wp_reset_postdata();
}
}
}
}
add_action(‘mh_after_post_content’, ‘mh_magazine_related_content’);
First, How can I change the color of the background where the posts are? the actual background has a picture on it, but im referring to the area where all the posts go. How can I take out the white and make it the same color as the header?
Second, this website here https://www.vladtv.com/ has its posts going from left to right (horizontally). Mine are just going down vertically. For instance, I would like one row of posts, then underneath hat another one, etc. So at least 3 posts per line.
Lastly, when I share my posts on facebook, by directly clicking on the share button on my website, it says “page not found”.
Thank you, that is all that I need in order feel confident, if one of you MH magazine developers could help me out, I would appreciate it.
]]>I’m using the MH-Magazine premium version theme slider on the front page. The slider shows excerpts under the post title which I like a lot. But if you look at any of the posts with excerpts (for example, https://www.wou.edu/westernjournal/stachtastic-the-return-of-the-mustached-man/) then you can see the excerpt sitting right under the subheading has identical text but the subheader looks a lot nicer.
Is there any way to show the subheading but not the excerpt on the post page but also show the excerpt on the homepage slider? Like, can I make the slider point to the subheader instead of the excerpt? Or can I change a setting to not show the excerpt on the post page but yes on the homepage slider?
Any help would be great.
Thanks!
Whenever I upload images (most of the time) I get the error uploading image message and the image does not finish uploading. Straight after this my site seems to malfunction and go down and I can’t get on any page on the site.. every page is blank. Does anyone have any ideas what this is?
I am using GoDaddy as my host.
I am using the MHMagazine theme.
This theme automatically re-sizes images for different thumbnails.
I hope you guys can help!
]]>I am using MH Magazine lite and recently i deleted 50 or so old posts but the “Related Post” images/links are still displaying from the posts I deleted weeks ago. Is there some kind of “cache” i need to clear.. Why is my site still “grabbing” these related posts to display?
Thanks!!
]]>