Kailey (trepmal)
Forum Replies Created
-
Forum: Plugins
In reply to: Advanced Most Recent PostsHaven’t seen the new thread yet, but in the event you haven’t figured it out, could you provide a few details:
which output (widget, template tag, shortcode) isn’t working
a link to the site – makes troubleshooting browser issues much easierForum: Plugins
In reply to: Advanced Most Recent PostsNot an “official” release yet, but this version supports shortcodes as well as a few other options: https://trepmal.com/2010/05/advanced-most-recent-posts-mod/
Forum: Plugins
In reply to: Advanced Most Recent PostsGlad to hear it!
Forum: Plugins
In reply to: Advanced Most Recent PostsHere’s how I would add it: https://codepad.org/xHZbwkHh
If it’s not showing up, it’s possible that the Welcome page is set to use a non-default template. If you go edit the Welcome page, does it show anything selected for the Template? screenshot
Forum: Plugins
In reply to: Advanced Most Recent PostsSorry, I think I wasn’t clear, you’ll want to add that snippet to the actual theme file.
Go to Appearance > Editor
Select your active theme from the drop down menu.
Choose Page Template (page.php) [some themes may use a different file]
Add the snippet to that file [I’d look for ‘the_content(‘..’)’ and add it just below that]Screenshot: https://cl.ly/2KMB
Forum: Plugins
In reply to: Advanced Most Recent PostsPerhaps you could copy the contents of welcome.php and put it on codepad.org? then post the link here so I can take look at the code see if there’s anything obvious.
Forum: Plugins
In reply to: Advanced Most Recent PostsThe code will look something like this, depending on the options you want:
These params indicate 3 posts, 150 characters long, with an image 50×50<ul><?php if (is_front_page()) { $params = array('limit'=>3, 'excerpt'=>150, 'firstimage'=>true, 'w' =>50, 'h' => 50 ); yg_recentposts($params); } ?></ul>
This should go either in the index.php file (if your front page has posts) or page.php (if you have a static front page) wherever it is in the HTML you want the recent posts list to appear.
Forum: Plugins
In reply to: Advanced Most Recent PostsUsing
<?php yg_recentposts($params); ?>
for now is probably the way to go, you can specify your excerpt length, image, and all the other options available in the widget inside $params (like$params = array('limit'=>3, 'excerpt'=>150, 'firstimage'=>true);
) then include that inside a conditional statement so it only shows on the front page.I’ll try to make some time to work on a shortcode-enabled version and make that available.
Forum: Plugins
In reply to: Advanced Most Recent PostsOkay,
I think ideally you’d want a shortcode, right? Unfortunately, this plugin doesn’t come with one, but there is a template tag you could use in your template:
<?php yg_recentposts($params); ?>
. Maybe the plugin’s homepage will shed a little light?I’ve got my own mod of this plugin, I’ll see if I can add a shortcode feature to it – if I can, I’ll try to release it as its own plugin.
Forum: Plugins
In reply to: Advanced Most Recent PostsI think what you want is another plugin that will let you control widget visibility. Widget Context looks like a good one.
Forum: Plugins
In reply to: [Plugin: Advanced Most Recent Posts] Display post's dateYup, you can try something like this, just edit it as needed:
$time = date('m/d/y',strtotime($post->post_date)); $excerpt = ' (' . $time . '): ' . $excerpt;
Forum: Plugins
In reply to: [Plugin: Advanced Most Recent Posts] Displaying Author?Yup, you can try something like this, just edit it as needed:
$time = date('m/d/y',strtotime($post->post_date)); $excerpt = ' (' . $time . '): ' . $excerpt;
Forum: Plugins
In reply to: [Plugin: Advanced Most Recent Posts] Displaying Author?try editing line 198 like this:
$excerpt = ': ' . $excerpt . ' ' . get_the_author();