Kailey (trepmal)
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Title Color] Post Title Color PluginPerhaps it’s being hidden by the screen options?
While on the Edit Post screen, click on the Screen Options tab (In the upper-right hand corner of the administration area, just below the “Howdy”). See if “Title Color” is unchecked.
use ‘cats’ parameter for category, use comma separated IDs
use ‘limit’ parameter for number of posts
[amrp cats=1,4,17 limit=5]
Thanks for posting a solution for everyone to use!
I’ve finally added a fix to the plugin… 🙂
in the
adv-most-recent.phpfile – go to the bottom and find the$postlistvariableyou should be able to poke around a bit and re-order the different elements to make them easier to style, if needed.
I think the biggest help will actually be in the CSS, not the PHP.
This is from memory and not tested so will definitely require some tweaking and customizing..advanced-recent-posts li { float:left; width:200px; margin: 15px; } .advanced-recent-posts li a img { display:block; }Hopefully, that’ll get a more gallery-like layout, with the images on top of the titles.
sorry ’bout that…
thanks for pointing that out.
I’ve added a fix to the existing 1.6.2, and will try to do a more careful release soon
Forum: Plugins
In reply to: Advanced Most Recent PostsI’ve just published 1.6.2 – that should be available soon.
the term ‘limit’ was my mistake – it really should have been ‘shownum’ – but now both will work.
Forum: Plugins
In reply to: Advanced Most Recent Postswow – I was apparently sleep deprived when coding parts of this plugin, I’ll get an update out soon that fixes that issue…
thanks for taking the time to let me know
Forum: Plugins
In reply to: Advanced Most Recent Posts@davidsdesk – does the ‘limit’ work if you remove all/any of the other arguments?
you might be able to put something like this in your header.php file
<?php echo do_shortcode('[swf]'); ?>The code that grabs the first image hasn’t been altered in the ‘mod’ version – it’s using regex pattern matching to locate the first image
"/<img[^']*?src=\"([^']*?)\"[^']*?>/"I’m not very good with regex, so if someone has a better version, I’ll update the plugin with it… 🙂
If CSS won’t work for you, then you can use the following to forcibly add a break after the image
– open up the
adv-most-recent.phpfile
– find line 436 (in version 1.6.1, maybe be different in other versions)
change
$image = '<img src="' . $img . '" title="' . $post_title . '" class="recent-posts-thumb" ' . $width . $height . ' />';to
$image = '<img src="' . $img . '" title="' . $post_title . '" class="recent-posts-thumb" ' . $width . $height . ' /><br />';I’ve also just added this as an option to version 1.6
Forum: Plugins
In reply to: [Plugin: Advanced Most Recent Posts Mod] Excerpt lenght WORDS and not LETTERSVersion 1.6 adds this option – let me know if it gives you any problems.
Assuming I understand correctly that you want to grab some number of the most recent posts and display them in reverse order, the fix will actually be pretty easy.
Replace line 280 of
adv-most-recent.phpwith this$posts = get_posts($query); //get posts $posts = array_reverse($posts);Basically, just adding the 2nd line.
If for any reason that doesn’t work, let me know.
Is the custom background feature enabled for your theme?
If the active theme doesn’t support custom backgrounds, the link won’t be displayed.