-
Author
-
September 11, 2013 at 12:39 #2635
jaybini
ParticipantI want to add the date to blog posts and to the recent posts widget, where can i do it and whats the code ?
Thank youSeptember 12, 2013 at 11:47 #2691SQadmin
KeymasterHi,
Date is already in the blog posts. Is shows just bellow the title.
To modify the widget you have to edit main theme file which is not recommended. If you want to to do that the file is located in framework/widgets/widget_recent_posts.php
Somewhere around line 59 you can render the date using this function:Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 14, 2013 at 18:33 #2824jaybini
Participanti did add <?php echo get_the_date();?> but nothing happened ? i don’t c any change i tried commenting lines and doesn’t either work :s
September 15, 2013 at 22:01 #2865SQadmin
KeymasterTry re-saving the widget. On what line have you added it?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 16, 2013 at 09:59 #2889jaybini
Participantline 61
<p>
<?php the_title(); ?> <br/><?php echo word_trim(get_the_excerpt(), $length, ‘…’ ); ?>
<br/><?php echo get_the_date(); ?>
“>
<?php _e(“read more”, ‘kleo_framework’); ?>
</p>September 16, 2013 at 10:06 #2891jaybini
ParticipantAnyways I want to make the latest post appear next to the search in the homepage like this website as u can c the posts appear on the top of the page http://www.people.com/people/ on the side there’s The Latest, Most Shared etc. , I want to make something like that but looks neat beside the search.
could u help pleaseSeptember 16, 2013 at 13:52 #2905SQadmin
KeymasterNot good. It should be on line 59: http://d.pr/n/gaxH
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 16, 2013 at 14:15 #2907SQadmin
KeymasterHi, You can install this plugin so you can render any widget using a shortcode: http://wordpress.org/plugins/amr-shortcode-any-widget/
Follow the instruction on how create a widget that can be called from a shortcode and then you need to modify this page template: sweetdate/page-parts/home-search-form.php. Copy it to sweetdate-child/page-parts/home-search-form.php and put this contents:
http://d.pr/n/ibVSHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 17, 2013 at 07:28 #2943jaybini
Participanti did all of that but still it gets me the error of debugging “Widget not found in widget list. Try debug”
and i press debug , and the debug list appear i don’t know which one is the id and what am i supposed to write?
I tried ur code do_widget code but not working ,
after i pressed debug i found kleo_recent_posts-3 which i added into the shortcode plugin
and put in the home-search-form.php <?php echo do_shortcode(‘[do_widget kleo_recent_posts-3]’); ?> but not working stillSeptember 17, 2013 at 12:45 #2966jaybini
Participant@sqadmin Please help its urgent to make it work
Thank uSeptember 17, 2013 at 18:42 #2995SQadmin
KeymasterGive me acces to your site to take a look,. I think is quicker. Send a reply and check “Set as private reply”
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 18, 2013 at 14:01 #3044SQadmin
KeymasterNow it shows on the home page. I had to add id like this:
[do_widget id=kleo_recent_posts-3]
Where the id is the widget id took from the debugHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 18, 2013 at 16:03 #3049SQadmin
KeymasterI replied above: https://archived.seventhqueen.com/forums/topic/blog-posts#reply-3044
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 18, 2013 at 16:08 #3050jaybini
Participantthank you sooo much @sqadmin for ur help
Great support thank u againSeptember 19, 2013 at 00:35 #3063jaybini
Participantone last thing , I just noticed that only signed in users can c the recent posts. how can i make guests c the posts too ?
September 19, 2013 at 01:18 #3065SQadmin
KeymasterWhen you are not logged in the register form appears so you have to modify this template like the one with the search form: page-parts/home-register-form.php
http://d.pr/n/hU5OHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 23, 2013 at 14:52 #3215jaybini
ParticipantHey sqadmin,
where can i find the recent_posts-3 code so i can edit it?
iI want to edit the html add some <p> <span> and so onSeptember 25, 2013 at 00:56 #3277SQadmin
KeymasterHi, The widget is located in sweetdate/framework/widgets/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 22, 2013 at 15:07 #8677jaybini
Participant1. I made the same but to “recent topics” but where can i edit the html code of recent topics ?
2. I want also to make the same for “Forum categories” i used before for the blog posts categories the following code
<?php
$catquery = new WP_Query( 'cat=1&posts_per_page=5' );
while($catquery->have_posts()) : $catquery->the_post();
include('latest-news.php');
endwhile;
?>
December 23, 2013 at 14:07 #8718Abe
KeymasterHi, You should search on bbPress forums to see how you can get them.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘blog posts’ is closed to new replies.