silverberry
Forum Replies Created
-
Forum: Plugins
In reply to: FancyTooltips Pluginthanks davincim – I found the Permanent Link to bit in the index page; finally found the Category alt tags in the template-functions-category.php file within the wp-includes folder.
Thanks again 🙂
Forum: Plugins
In reply to: FancyTooltips Pluginnot really related to this plugin – although I’m using it and loving it — but how do you change the text in the alt tag?
Right now it lists Permanent Link to — TItle of Post.
I want it to just say “View Title of Post”.And on the Category links – it says view all posts listed in Category title.
I want it to say View Category.I’m sure this is something simple ….
Forum: Fixing WordPress
In reply to: Previous 7 Daysadd this
function get_recent_posts($no_posts = 6, $before = '<li>', $after = '</li>', $show_pass_post = false, $skip_posts = 0) {
global $wpdb, $tableposts;
$request = "SELECT ID, post_title FROM $tableposts WHERE post_status = 'publish' ";
if(!$show_pass_post) { $request .= "AND post_password ='' "; }
$request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
$posts = $wpdb->get_results($request);
$output = '';
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
$output .= $before . '<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . $post_title . '">' . $post_title . '</a>' . $after;
}
echo $output;
}in your my-hacks.php file ….
then use this
<?php get_recent_posts(10, '', '<br />', true, 7); ?>to call the 10 posts BEFORE the most recent 7 posts …
make sense?