Links in posts on blog reel

[ad_1]

Hi everyone,

I’m hoping I don’t come across too silly here. I will admit that my PHP skills are a little …. shall we say limited 🙂 So hopefully I can explain things well and give everyone the right info.

I am currently building a site which I have very nearly finished. It’s built around a theme called GeekMag which so far has done me fairly well – except one slight issue.

if you have a look at a post that has a link in it (see [https://xgeek.au/welcome-to-xgeek-au/](https://xgeek.au/welcome-to-xgeek-au/) as a reference – the text “Prepare your user accounts” has a link to the registration page) everything displays as I want it to.

If you go back to the main page, the link is stripped. I would actually like to have the image linked on that blog reel as well. I’m just not entirely sure how to make that happen.

I’ve found what I *think* is the code that builds this. I’m just not entirely sure if this behaviour can be changed and if so what I need to do?

<div class=”geekmag-xl-article-right <?php if (!has_post_thumbnail()) { ?>no-img<?php } ?>”>
<?php if (get_the_category()) { ?>
<div class=”geekmag-post-cat-tags”>
<span><?php the_category(‘</span><span>’); ?></span>
</div>
<?php } ?>
<h3>
<a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a>
</h3>
<?php $geekmag_remove_author_links = get_option(‘geekmag_remove_author_links’); ?>
<div class=”geekmag-post-date”>
<a href=”<?php the_permalink(); ?>”><i class=”fa fa-clock-o”></i> <?php the_time(get_option(‘date_format’)); ?></a><?php if($geekmag_remove_author_links != ‘true’) { ?> <a class=”geekmag-post-author” href=”<?php echo esc_url(get_author_posts_url( get_the_author_meta( ‘ID’ ) )); ?>”><?php echo get_avatar( get_the_author_meta( ‘ID’ ), 20 ); ?> <?php the_author(); ?></a><?php } ?>
</div>
<?php the_excerpt(); ?>
</div>
</div> <div class=”geekmag-xl-article-right <?php if (!has_post_thumbnail()) { ?>no-img<?php } ?>”>
<?php if (get_the_category()) { ?>
<div class=”geekmag-post-cat-tags”>
<span><?php the_category(‘</span><span>’); ?></span>
</div>
<?php } ?>
<h3>
<a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a>
</h3>
<?php $geekmag_remove_author_links = get_option(‘geekmag_remove_author_links’); ?>
<div class=”geekmag-post-date”>
<a href=”<?php the_permalink(); ?>”><i class=”fa fa-clock-o”></i> <?php the_time(get_option(‘date_format’)); ?></a><?php if($geekmag_remove_author_links != ‘true’) { ?> <a class=”geekmag-post-author” href=”<?php echo esc_url(get_author_posts_url( get_the_author_meta( ‘ID’ ) )); ?>”><?php echo get_avatar( get_the_author_meta( ‘ID’ ), 20 ); ?> <?php the_author(); ?></a><?php } ?>
</div>
<?php the_excerpt(); ?>
</div>
</div>

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer