Problem about and images and post template

January 2013 WordPress Theme
GK User
Sat Jul 27, 2013 4:45 pm
Hi you all!

We are changing our web-site editing platform from joomla to wordpress, and we are transfering contents made before with joomla to wordpress. Everything is going ok, however we had a few difficulties about two things. First of all, if you click on http://wordpress.basketinside.com/?p=10676 and see the article, we woud like to put "author alias" (if it's present) and visit number writings next to the writing "Written by" : in fact these two writings now are placed at the end of the article, not at the beginning. In the mean time we'd like to know if it's possible to delete the writing "leave a reply".
Last but not least, we have got a problem with images. Wo would like that photo we used could be authomatically preview image: at the moment, despite of the use of several plugins, or the use of the option "feature image", the only result we achieved is to have a double image inside the article.

Thank you all for support you'll give us.
User avatar
Fresh Boarder

GK User
Sat Jul 27, 2013 11:02 pm
i resolve the problem of image featur edit content.post.featured.php with this
<?php elseif(is_home() && has_post_thumbnail()) : ?>

but i don't find nothing about alias and counter
User avatar
Fresh Boarder

GK User
Mon Jul 29, 2013 8:11 am
Hi,

If you are using the latest version of the theme, you can disable Leave a reply in post editing - > Post additional params section, but I think, you have to do it for all posts, so you have to edit News/gavern/helpers/helpers.layout.fragments.php file, gk_post_meta function (around line 194) and comment, remove or change the conditions of this fragment:
Code: Select all
<?php if ( comments_open() && ! post_password_required() && $param_comments) : ?>
       <li>
          <?php
             comments_popup_link(
                '<span class="leave-reply">' . __( 'Leave a reply', GKTPLNAME ) . '</span>',
                __( '<b>1</b> Reply', GKTPLNAME ),
                __( '<b>%</b> Replies', GKTPLNAME )
             );
          ?>
       </li>
       <?php endif; ?>

here you can also put you alias author code (e. g. instead of the "Leave a reply" text)
User avatar
Moderator

GK User
Thu Aug 01, 2013 10:22 pm
Thanks for the answers but i have still the problem

I used 3 differnt code, but always show me the author and not the alias

you can see --> http://www.basketinside.com/?p=21691
User avatar
Fresh Boarder

GK User
Fri Aug 02, 2013 7:34 am
Generally WP doesn't support author alias, but you have custom field author-alias right?
Try this:
http://wordpress.org/support/topic/author-alias
User avatar
Moderator

GK User
Fri Aug 02, 2013 5:09 pm
i insert that php code but always show me only author and not alias

<?php $Alias = get_post_meta($post->ID, 'Author-Alias', true); ?>
Author : <?php if ($Alias == "")the_author_posts_link(); else echo $Alias; ?>
User avatar
Fresh Boarder


cron