about meet gavernwp

Feel free to talk about everything related to our Wordpress Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Dec 24, 2013 8:10 pm
Hi there and Merry Christmas!

I have two questions about meet gavernwp,

1. How can I make in latest posts page the featured image of all posts to show as thumbnail with left alignment? I want to reduce the total length of my latest posts page.

2. How can I put a "Continue reading -->" (like the latest posts page) in category or tag archives pages?

My php knowledge is limited.

Thanks!
User avatar
Fresh Boarder

GK User
Thu Dec 26, 2013 11:29 am
I found some solutions for my questions

For the 1st, I thinking of trying this: http://vanweerd.com/how-to-add-featured-image-thumbnails-to-wordpress-posts-and-pages-the-easy-way/#enable_image

For the 2st, I removed the below code from the MeetGavernWP/content.php (I am using the child theme) and I got what I wanted
Code: Select all
<?php if ( is_search() || is_archive() || is_tag() ) : ?>
      <section class="summary">
         <?php the_excerpt(); ?>
      </section>
      <?php else : ?>




What do you think?
User avatar
Fresh Boarder

GK User
Fri Dec 27, 2013 2:59 pm
Hi,

I'm not sure what exactly do you want to achieve, MeetGavernWP has already featured images support. In regards to the second issue it's enough to remove only "is_archive || " from mentioned code.
User avatar
Moderator

GK User
Fri Dec 27, 2013 3:28 pm
1. No, removing only "is_archive ||" is not enough because I want the same result for tags, archives and search.

2. About the featured image: Look for example this: http://vgargan.gr/blog/

The first post's image was added using featured images support. The second post's image was inserted within post using code <a href="..."><img src="..." class="alignleft size-thumbnail wp-image-1535" /></a>.

I would like my featured images support to display images as the second post's.

3. Another thing I discovered yesterday is that if a post uses pagination, this pagination is shown in latest posts page e.g. look second article in http://vgargan.gr/2010/03/. Do you know how to fix that?

Thanks!
User avatar
Fresh Boarder

GK User
Sat Dec 28, 2013 12:28 pm
I fixed the featured image setting.

In the MeetGavernWP/layouts/content.post.featured.php in line 47 I changed from
Code: Select all
<?php the_post_thumbnail(); ?>
to
Code: Select all
<?php the_post_thumbnail('thumbnail'); ?>
and played a little with css.

The only issue left is the pagination issue.
User avatar
Fresh Boarder

GK User
Mon Dec 30, 2013 9:54 am
If you don't want the pagination on category/archive page you should check MeetGavernWP/content.php file and add some conditional tags to gk_post_links function.

e.g.
Code: Select all
<?php if(!is_archive) : ?>
<?php gk_post_links(); ?>
<?php endif; ?>

or use is_single to show this pagination only on posts pages.
User avatar
Moderator

GK User
Mon Dec 30, 2013 10:30 am
Thanks!
User avatar
Fresh Boarder


cron