micasuh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom post type displayed by wp_queryOkay, after playing more, I got it down to this:
<ul id="firemen"> <?php query_posts('post_type=firemen'); while ($firemen->have_posts()): $firemen->the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a> </li> <?php endwhile; ?> </ul>
Basically, I changed
wp_query
toquery_posts
and that worked. My original code was too complicated for my own good!Now, because of the unusual supports for my custom post type, when I click on the permalink, it takes me a 404 page. I wonder how I can make the custom fields show up in the link without actual content from the editor?
Forum: Themes and Templates
In reply to: Changes Twentyten 1.0 >> 1.1I really hope someone will create a proper changelog for the TwentyTen theme on the theme’s WordPress page.
Being that TwentyTen version 1.2 will imminently be released with WordPress 3.1 shortly, it’d be great to know what the additional changes are to this foundational theme.
Forum: Fixing WordPress
In reply to: New Register Admin Approval?Oh wow, I looked but didn’t see anything like this. I was kinda wanting something that wasn’t a plugin in the first place but I guess a plugin will have to do. Thanks for the link! I’m gonna try out Register Plus Redux.
Yes, thank you!
Forum: Fixing WordPress
In reply to: “http error” on media uploadFrom another thread.
https://blog.nerdstargamer.com/2009/wordpress-upload-http-error-fix/I hope someone can help me. I’m baffled.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Head elements on gallery pages only?I have new update to my original request that NO ONE seems to know how to help me!
Here’s the code I’ve added to functions.php file:
// NextGEN script exclusions add_action('wp_print_scripts','my_deregister_javascript', 100); function my_deregister_javascript(){ if (!is_page('xx')) { wp_deregister_script('ngg_script'); wp_deregister_script('thickbox'); } } // NextGEN style exclusions add_action('wp_print_styles','my_deregister_styles', 100); function my_deregister_styles(){ if (!is_page('xx')) { wp_deregister_style('NextGEN'); wp_deregister_style('thickbox'); } }
where xx equals the page number for the gallery (or you can add array for multiple pages with galleries).
This doesn’t take care of getting rid of the NextGEN version number, CoolIris/PicLens, and additional on-page script in the footer. What’s the solution?!
Forum: Fixing WordPress
In reply to: Is this a WordPress exploit error or GoDaddy’s fault?We never found out what the cause was but since I deleted it, it hasn’t been a problem luckily. I think it was GoDaddy’s fault since they’ve had similar problems with others, since.
Forum: Themes and Templates
In reply to: wp_list_pages and custom fieldsIn short, I used the code on this post, modified it for my needs, and it basically works as I need it to.
https://www.wprecipes.com/how-to-redifine-title-tag-with-a-custom-fieldForum: Fixing WordPress
In reply to: login loop showing no error or allowing email password resetGoDaddy was having issues with the database I think. Once they did something, it started working again.
Forum: Fixing WordPress
In reply to: RSS feed spamIt looks like there’s some code that was injected into wp-blog-header.php file. It’s in base 64 and is a VERY long code injection. How did this happen?!
Forum: Fixing WordPress
In reply to: RSS feed spamHere’s a possible explanation of what’s going on.
https://linux.byexamples.com/archives/397/wordpress-exploit-we-been-hit-by-hidden-spam-link-injection/Even after flushing the cache, every time a new cached page is created, the same links are injected and appended to the cached page. I have checked all my theme files and do not see any screwy code in there.
Forum: Fixing WordPress
In reply to: RSS feed spamOh wow, this is more than just RSS feed spam. However, it wasn’t visible to me until I viewed the site logged out.
This also seems to be happening specifically to cached pages using WP Super Cache plugin. All recent pages that are cached are appending a series of links for drugs coming from an old stopdesign.com attack.
They only appear on the HTML versions of these pages, which are the cached pages. Nothing seems to be affected on the dynamic pages.
Forum: Fixing WordPress
In reply to: RSS feed spamBTW, I have no reason to believe the site has been hacked. There’s no spam comments on the site, I’ve locked down all the directories with the correct CHMOD permissions, and I don’t know how these links are only occurring in the RSS feed and not the website.
Could this be a SQL Injection attack? If so, why just the RSS feed? When someone subscribes to the feed using an application like Google Reader, they do not see any spam.
Forum: Fixing WordPress
In reply to: Is this a WordPress exploit error or GoDaddy’s fault?Wow, this is nuts. I deleted the above code that was inserted but just 3 days later it reappears! WTF.
Is this a trojan horse or exploit that’s within GoDaddy’s servers? I need to figure out how to prevent this malware from replicating!