investor
Forum Replies Created
-
Thanks for replying. I think all of your themes are very nicely designed. The big problem now is that I am thoroughly confused as to which of your themes to use. I wish I could use all of them simultaneously ??
Thanks again for the generous contribution.
In (i) the code to be added has got jumbled up. It is:
(#comment”> <?php comments_number(‘Leave a comment’, ‘1 Comment’, ‘% Comments’); ?>)
The key is the word “#comment”. If you change it to “#comments”, it does not work. If you use “#respond”, it works. The one problem is that you are taken to the comment box instead of at the top of the comments. I am trying to figure out how to make this work.
Yes, thanks from me as well for a great plugin and for such speedy support.
Forum: Reviews
In reply to: [Titan Anti-spam & Security] This is EXACTLY what we needed to combat spamI agree. I reviewed it once in December and a month later I have still not seen the hordes of spam bots who used to run amok earlier. Also, on the same server, in other wordpress installations, I had installed SI Captcha & Captcha (Maths). I am sorry to say that both of these plugins are totally ineffective. The bots just walk through unhindered. The only one that is able to stop them dead in their tracks in this plugin. Lets hope the good times last.
The “$filtered_title” variable is used in a couple of other places in the basic-functions.php file. So, instead of commenting it out completely, a better solution may to delete the “$site_name .”.
The line will now read:
$filtered_title = $title;
That’s easy. Create the folder called “cache”. Sometimes 755 is not enough. It needs to be 777.
(i) What is the blog network that you submitted to? Does it still retain its PR?
(ii) The random publishing of old posts does not seem to be the handiwork of this plugin.
(iii) Did you change the default settings? Increase the number of keywords to be shown on the post? Select the “Save popular search terms as post tags”?
If you did (iii), that may be the culprit. If you disable, you will get re-indexed soon. Just have patience.
Use the plugin sparingly. Its a great tool to know what combination of search words have gotten people onto your site so you can start new posts concentrating on those search terms and get more traffic.
No It must not be selected because a surplus of tags & keywords on the page is misunderstood as ‘keyword stuffing’ and severely punished by the search engines.
I disabled both options (they are unselected by default)and my pages are back in the search results.
The plug-in is a fine one but must be used within limits. The plug-in tells you what keywords the readers are searching for. You should write new articles where those keywords are emphasized. This will give your page better ranking for those keywords.
Dear Mitch,
First of all, many thanks for selflessly, tirelessly and cheerfully serving the community. You are an inspiration for us folks. Such good work has its own rewards.
Coming to my query, for some reason I can’t get more than one random post to show using the random-template (do others have the same problem?).
This is the code in the random template:
<?php else: $related_query->query("orderby=rand&order=asc&limit=5"); $related_query->the_post();?> <p>No related posts were found, so here's a consolation prize: <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>.</p> <?php endif; ?>
Is it not lacking the ‘loop’ to show more than one post….?
Using other loop methods shows multiple posts though the same posts are repeated.
Anyway after much ‘copy-paste’, I stumbled on a solution using the code found here:
Just add the following after the
<?php else: ?>
and before the<?php endif; ?>
command in the example-template.<br /> <p>No related posts were found. The Latest five posts are as follows:</p> <br /><br /> <?php //db parameters $db_username = '#'; $db_password = '#'; $db_database = '#'; $blog_url = 'https://localhost/experiment5/wordpress_284/index.php/'; //base folder for the blog. Make SURE there is a slash at the end $maxchars = 135; //connect to the database mysql_connect(localhost, $db_username, $db_password); @mysql_select_db($db_database) or die("Unable to select database"); //get data from database -- !IMPORTANT, the "LIMIT 5" means how many posts will appear. Change the 5 to any whole number. $query = "Select * FROM wp_posts WHERE post_type='post' AND post_status='publish' ORDER BY id ASC LIMIT 5"; $query_result = mysql_query($query); $num_rows = mysql_numrows($query_result); //close database connection mysql_close(); // html page starts after ?> <ol> <?php //start a loop that starts $i at 0, and make increase until it's at the number of rows for($i=0; $i< $num_rows; $i++){ //assign data to variables, $i is the row number, which increases with each run of the loop $blog_date = mysql_result($query_result, $i, "post_date"); $blog_title = mysql_result($query_result, $i, "post_title"); $blog_content = mysql_result($query_result, $i, "post_content"); $blog_content = substr($blog_content, 0, $maxchars); $blog_content = $blog_content . "..."; //$blog_permalink = mysql_result($query_result, $i, "guid"); //use this line for p=11 format. $blog_permalink = $blog_url . mysql_result($query_result, $i, "post_name"); //combine blog url, with permalink title. Use this for title format //format date $blog_date = strtotime($blog_date); $blog_date = strftime("%b %e", $blog_date); //the following HTML content will be generated on the page as many times as the loop runs. In this case 5. ?> <li><strong><a href="<?php echo $blog_permalink; ?>"><?php echo $blog_title; ?></a></strong> <?php echo $blog_content; ?> <a href="<?php echo $blog_permalink; ?>">(more)</a> <br /> <br /><br /></li> <?php } //end the for loop ?></ol>
You can adjust the length of the excerpt with the $maxchars = 135; variable.
Works very well indeed.
Hi Mitch,
Thanks for the prompt response. Greatly appreciated.
Is it possible the command to show 1 random post is coming from some other file and not the template file?
To overrule the caching possibility, I did a fresh install of WP and YARPP on my local machine, ensured there were sufficient number of similar and dissimilar posts, changed the match threshold, ensured the cache was rebuilt after every change, even changed browsers – but still no change.
Quite perplexed.
I changed the
else
command:<?php else: ?> <br /> <p>No related posts were found. The Latest five posts are as follows:</p> <br /><br /> <ul> <?php $recentPosts = new WP_Query(); $recentPosts->query('showposts=5'); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; ?>
This works in the sense that more one post is shown though the same post is repeated throughout.
Even the
<?php rewind_posts(); ?>
command had no effect.Is there an alternate
else
command you can write up?