matthewpaul
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable image from linking on single post pageI did, it was never in there to begin with. Once I add it in, the image shows up where I want it to, but shows up again after the content of the post, and it’s no where in the code.
Forum: Fixing WordPress
In reply to: Disable image from linking on single post pageAs soon as I add
add_theme_support('post-thumbnails');
to functions.php, the post thumbnail is automatically added below the content of a post, if the post has a thumbnail, even before editing single.php.
I have no idea why. Any ideas?
Forum: Fixing WordPress
In reply to: Disable image from linking on single post pageIt’s on my local server, not online yet.
It appears the problem with post-thumbnails is that it automatically inserts the thumbnail below the_content on a post page, which isn’t where I want it to appear.
Forum: Fixing WordPress
In reply to: Disable image from linking on single post pageThanks, esmi. I got it working. My only problem now is that for posts with a post thumbnail, the thumbnail automatically gets added to the bottom of my post, even though there’s no code in my single page calling it to show up there.
How can I remove this? I just want it above my post text where I added the code for it.
Forum: Fixing WordPress
In reply to: Disable image from linking on single post pagepwhitene,
It does, but I want the image to link to the post if I’m on the index page. The link around the image should only be removed when viewing the single post page.
esmi,
How can post_thumbnail be used to add a link to the post around the post’s image on the homepage, but remove that link around the image when on a single post page?
Forum: Fixing WordPress
In reply to: Exclude certain categories from search results page<?php query_posts("cat=-1,-2,-3"); ?> <?php if(have_posts()) : ?>
appears to work as well.
1, 2, and 3 are the category IDs.Place
<?php query_posts($query_string . '&showposts=10'); ?>
before
<?php if (have_posts()) : ?>
Forum: Fixing WordPress
In reply to: Comment template changes overriden after upgradeThanks, t310s_ and apljdi. I used the example in the Codex link and worked off that.
Forum: Fixing WordPress
In reply to: Change the MORE link behavior?This can be done without a plugin for version 2.7.1 and higher by adding some code to your theme’s functions.php file.
https://codex.www.ads-software.com/Customizing_the_Read_More#Link_Jumps_to_More_or_Top_of_Page
Forum: Fixing WordPress
In reply to: Comment template changes overriden after upgradeI want to add a “/” between the comment author and the date so the output looks like:
Joe / December 29, 2009 at 10:00 pm
This is my comment.Can this be done without modifying comments-template?
Forum: Fixing WordPress
In reply to: Comment template changes overriden after upgradeNo, comment-template.php is located in wp-includes folder. The changes I make can only be made in comment-template.php, not the comments file. I keep a backup and modify a couple lines after each time I upgrade, rather than replace the whole file so there’s no issue.
They’re minor changes, but I was hoping there was a way to avoid having to make them after every upgrade.
Forum: Everything else WordPress
In reply to: Pull in price quotes from third-party websiteThanks. Will try the WP Web Scraper plugin.
Forum: Fixing WordPress
In reply to: Have I been hacked?Anyone?
Forum: Fixing WordPress
In reply to: Have I been hacked?I know it’s just a comment that was added, but the ?> is what closed the rest of the PHP in the file and preventing the site from loading.
Forum: Fixing WordPress
In reply to: Have I been hacked?No, just Akismet, Google XML Sitemaps, and Subscribe To Comments.
That PHP line of code, which appears to have been maliciously added, blocked my site from loading.