Tagged: blog posts
July 7, 2011 at 3:37 am #4920
I’ve created a portfolio page and now whenever I add a new Post its displays the entire article with no read more. I would like it to display the way you have on your live preview of CUBIT…Part of the article with a “read more”
Can you please advise how to fix this problem
Thanks!July 7, 2011 at 6:57 am #48131
1) You can use the read more tag if you want to control the excerpt lenght/content.
2) or you can modify the template a bit – wordpress will generate the excerpt automatically if you don’t use the excerpt field:
In template_portfolio.php replace:
<?php the_content('read more'); ?>
echo "<a href='".get_permalink()."' class='more-link'>Read more</a>"; ?>July 7, 2011 at 3:52 pm #48132
I have the same problem with blog section posts. I have replaced the code as per your mail above, but now there is text appearing at the end of the entry saying “write your sentence her”.
Also, I have entered an image to appear as a thumbnail the same as the posts on your live demo, but there are not appearing. I would appreciate any help.
/DeirdreJuly 8, 2011 at 5:31 am #48133July 8, 2011 at 5:04 pm #48134
Yes it is the cubit theme – have already posted to the forum previously – please see http://www.pcheating.ie
If you look under the Heating Hints & Tips (which is essentially the blog) you will see what I mean. let me know if you need FTP or WP access to find out more. Thanks for your help.July 10, 2011 at 12:38 pm #48135
Can you create me an admin account and send me the login details to: email@example.com – I’ll look into it.July 10, 2011 at 7:12 pm #48136
Thanks Dude, I set an admin account up there for you now – you should get an email shortly with login and password. /DJuly 10, 2011 at 7:41 pm #48137July 11, 2011 at 11:33 am #48138
Thanks Dude, that’s great. Would never have found that.
But to answer the second part of my question – do you have any idea why the thumbnail pics are not appearing in the blog summary the same as the demo you have on Themeforest.? Example, see the first blog entry which has a pic uploaded to the section on the backend. I have added a pic in the size required but it’s not appearing in the summary for some reason. Would you mind taking a look when you get a chance please? Appreciate your help. Thanks /DJuly 12, 2011 at 5:18 am #48139
You can use this plugin: http://wordpress.org/extend/plugins/advanced-excerpt/ – it helps you to display images in post excerpts. By default wordpress strips html tags + images from excerpts/summaries.July 12, 2011 at 5:56 pm #48140
Thanks Dude. I downloaded this plugin you recommended and configured the settings. Is there code that I need to insert into the blogpost itself in the backend as the excerpt is not appearing in the post for me to amend it and add the pic.
Sorry for all the questions, but when I saw the live demo of the Theme, I assumed that this functionality was provided out of the box.
Thanks for your help.
/DeirdreJuly 13, 2011 at 1:17 am #48141
Thanks for your help Dude it resolved my problem perfectly. Another question how do i replace the three smalll header pictures on the main page, can’t seem to find them ?July 13, 2011 at 7:10 am #48142
In index.php delete following code:
<div class="box_image"><img src='<?php echo $preview_pic_mainpage; $preview_pic_mainpage =''; ?>' alt="" /></div>July 13, 2011 at 8:17 am #48143
Can you pls let me know if there’s anything else I need to do to get the thumbnail pics working. I’ve done what you’ve suggested by installing the plug in but I can’t see anywhere to insert the pics. Is there something I need to do in the backend?
/DJuly 14, 2011 at 5:21 am #48144
As far as I know the advanced excerpt plugin just avoids that wp strips html content. If your image is within the excerpt text it should be displayed automatically.July 14, 2011 at 8:30 am #48145
Ok thanks. I was expecting to see an excerpt under the main post but there was none there but seems to working ok now.
/DJuly 14, 2011 at 3:15 pm #48146
The topic ‘Portfolio Page post showing full article with no read more’ is closed to new replies.