Marcomail
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get global $post from IDthanks ??
Forum: Plugins
In reply to: utw – automatic tagsi’m not interested to have automatic tag creation, i would set keywords in automatic from the content of the post
Forum: Plugins
In reply to: utw – automatic tagsMmmmm but i must click on the button, i would automatize the system ??
Forum: Plugins
In reply to: quick approve ?For posts from other users ??
Forum: Plugins
In reply to: quick approve ?bump
Forum: Plugins
In reply to: why this plugin doesn’t work ???Now it works, how can i return the content of the meta data in the wp loop, i try to use return in the bottom of the function but did’nt return anything….
function updatersslink() {
global $post;
preg_match('#Original link <a href="(.*)">#', $post->post_content, $rect);
$current = get_post_meta($post->ID, 'rsslink');
if (!isset($current) || (sizeof($current)==0)) {
add_post_meta($post->ID, 'rsslink', $rect[1]);
}
else {
update_post_meta($post->ID, 'rsslink', $rect[1]);
}
}return 'sda79fa7fdfa95taf' ;
?>
Forum: Plugins
In reply to: insert a random link between index articleup
Forum: Plugins
In reply to: insert a random link between index articlei think it can bel simple, but i’m not a php expert.
A function to take a random number from 1 to 12. Insert in the loop a php code that compare the random number with the post counter, and if the same show the link.
but i don’t know write this in php
Forum: Plugins
In reply to: New plugin: Post Thumbsis use this code for the sidebar:
<?php $wp_query->query_vars[“cat”] = 3; ?>
<?php $wp_query->query_vars[“showposts”] = 4; ?>
<?php $wp_query->get_posts(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php echo tb_post_thumb(); ?>
<?php endwhile; else: ?>
<h2>Not Found</h2>
<p><?php _e(“Sorry, but you are looking for something that isn’t here.”); ?></p>
<?php endif; ?>`In the homepage works good, but if i move in the single.php i see in the thumb the image in the single post, and not for cat = 3
Forum: Fixing WordPress
In reply to: why get post doesn’t work ?ok, i’ve solved, but why both the_ID() and the_title() are at the start of the string and not inside the corrispective tag ?
Forum: Plugins
In reply to: query counterNow i have 58 queries for the homepage, 40 for the rest
Forum: Plugins
In reply to: query counteri’ve found the problem!! This plugin fuck the queries:
WP Automatic Reference
Forum: Plugins
In reply to: query counterthe problem is this code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="postcontent" id="post-<?php the_ID(); ?>">
<h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1><div class="storycontentgallery">
<?php the_content('Read more...'); ?>
</div><!--
<?php trackback_rdf(); ?>
--><br />
<br /><?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endwhile; else: ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php endif; ?>if i delete this i have 250 queries less
Forum: Plugins
In reply to: query counteri use this code to show 3 loop in the index.php:
<?php $wp_query->query_vars["cat"] = 11; ?>
<?php $wp_query->query_vars["showposts"] = 3; ?>
<?php $wp_query->get_posts(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>if i delete the 3 loop i have 37 queries…
Forum: Plugins
In reply to: query counter264 queries ?? Is normal ?