Hedley
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Newbie I D 10 T I am sure…Did you install WP in the root? If not, point your browser to the directory you installed it in.
Did your host place an index.html or home.html file in your root? If so, it will be read before WordPress’s index.php.
Forum: Fixing WordPress
In reply to: User Photo PluginNeil:
I found that I was able to get it to display nicely thus:
In my theme’s home.php (the file from which I am calling the image) I have simply (with no line-specific div tags):
<?php userphoto_thumbnail($authordata); ?>
In my theme’s style.css I found this bit that is relevant to what I am working on, though it took a while for me to track it down:
.hpnewtop img { border: none; margin: 0px; }
I changed it, adding a float statement to wrap the text, and a margin statement to put some spaces between images and text:
.hpnewtop img { border: none; float: left; margin: 4px; }
And it seems to be doing quite nicely.
HB
Forum: Plugins
In reply to: [Plugin: FeedWordPress] I want title link to open in new windowI haven’t tried it, but this plugin might work.
You could also change your theme code. For instance, in your theme’s index.php (or other file that displays posts), find something like this:
<h2 class="title-1"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
…and add a target tag:
<h2 class="title-1"><a href="<?php the_permalink() ?>"
target=”_blank”title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
Depending on your theme, you may have to edit multiple files, of course. The plugin would be simpler, if it works.
Forum: Fixing WordPress
In reply to: Archives by category not workingI’d like to know this myself.
Forum: Themes and Templates
In reply to: side bar help!If you’re using a theme you downloaded, look at the files in the archive you downloaded. If your theme came with WordPress, look at the files in the WordPress archive you downloaded. If you installed WordPress with Fantastico or something, download the current version of WordPress, unpack it, and look at the files for the theme you are using. (/wp-content/themes/).
Forum: Fixing WordPress
In reply to: Need help changing top image on this blogLooks like you fixed the logo already.
PS: I think you mis-spelled “recipes”.
Forum: Fixing WordPress
In reply to: Categories ID/Slug – Huge issues!I am also working with a couple of ‘magazine’ style themes and using WP 2.7 as a CMS, but I don’t seem to be having your struggles with categories/slugs.
Why go to the database? Just go to the main categories page in the admin panel. In the list of categories, the slugs are shown in the list, and if you hover your cursor over the category name you’ll see the category id in the hyperlink on your browser’s status bar (ie: https://yourdomain.com/wp-admin/categories.php?action=edit&cat_ID=18). Yes, it would be nice if the ID was listed with the name and slug, but it’s not that hard to find.
Forum: Fixing WordPress
In reply to: How to create page not visible in navigation menuTry this suggestion.
Forum: Themes and Templates
In reply to: side bar help!Compare your sidebar.php, home.php, and stylesheet with the default ones for differences.
Have you added any widgets to the left or right sidebars, or are they using default code? Perhaps adding widgets causes a different display style.
Forum: Themes and Templates
In reply to: If/then condition in custom field usageThanks very much for the reply, MH, that seems to have done the job.
With each struggle comes more enlightenment…
HB
Forum: Everything else WordPress
In reply to: Database not saving categories in wp_post->post_categoryFigured it out with a little experimenting.
When you create a category in WordPress, there will be a category ID# for the new catgory(nothing new about that, of course). Find your ID# by hovering your cursor over the category link name on the category page and check your browser’s status bar (something like
https://yourdomain.com/wp-admin/categories.php?action=edit&cat_ID=17
).There are three relevant tables in the database which are all updated each time you add/remove/change a category:
— wp_terms
— wp_term_taxonomy
— wp_term_relationshipsIn wp_terms, you’ll find a field called term_id. Each category is listed with its category # as the term_id, and these are linked with the category name and slug.
The table wp_term_taxonomy also contains the term_id, but in this table it is linked with another field, the term_taxonomy_id, and also contains some other details.
The third table, wp_term_relationships, contains just three fields: object_id, term_taxonomy_id, and term_order. This is the file in which you can import data to link your posts with categories.
In my case, I export all the posts from a Joomla site and imported them to a new WordPress 2.7 site using phpMyAdmin. I then created all the categories manually, but if you have hundreds you could probably import them to the wp_terms table.
I had previously used phpMyAdmin to export the Joomla posts to an Open Office spreadsheet, but CSV would be fine too. I opened the file in Open Office base, and changed all the Joomla category ID#s to the correct new corresponding WordPress category ID#s, and then deleted all the columns except for the post ID # and the category ID #. I saved it as CSV and used phpMyAdmin to import the file into wp_term_relationships using the “CSV using LOAD DATA” option. Bingo, all my posts were now linked to categories. This was low risk for me, as I was importing the stuff into a blank site, so if I screwed up the import, I could just delete the content from the table and try again, but that was not necessary.
Just to reiterate: importing posts and importing category relationships are separate operations, because the category ID is not listed anywhere in the post record. It seems weird at first, but makes sense when you get your head around it.
HB
Forum: Everything else WordPress
In reply to: Database not saving categories in wp_post->post_categoryDid you have any luck with this, msky? I am trying to import (using phpMyAdmin) 700 posts into a WP2.7 database, and there are nine categories. I see no way to specify what category each post should go into during the import.
Forum: Installing WordPress
In reply to: Archive page gives 404Have you tried creating a page called “archives”, and setting its template to ‘archive.php’?
Check the section on Page Templates at https://codex.www.ads-software.com/Pages#Page_Templates.
Forum: Fixing WordPress
In reply to: How To Check My Version?That first response didn’t seem like a very helpful answer, just snooty.
WordPress *used to* say the current version on the bottom of the dashboard page, but no longer appears to do so. Now it just says what version you *don’t* have.
And saying “look in the source” is rather vague. If one starts looking through php files, one is bound to be disappointed. A specific file to look in might be readme.html, which is often found in the home directory after installation (or will be in your install archive), and should list the installed version.
Forum: Fixing WordPress
In reply to: blank page after comment is submittedI started having this problem recently as well. Posting was fine, but if anyone left a comment, they would be shown a blank page after clicking submit. I tried turning off each plugin individially, as well as upgrading WordPress.
While I was experimenting, I noticed that a visit who is not logged in would get the blank page, but if I – as admin – left a comment while logged in, I did not get the blank page. This led me to consider what might be triggered by an anonymous visitor that would not be triggered for admin. Further thinking led me to a solution. Since I have my system set to hold comments for Admin approval, an e-mail to Admin is generated when someone leaves a comment, but because comments by the Admin are auto-approved and not held for moderation, no e-mail is generated. It seemed likely that the e-mail was failing for some reason, and WP (or a plugin) didn’t handle the error well enough to do anything but stop processing while trying to execute the remaining sections of “wp-comments-post.php”. This was reinforced by the fact that I had not received any e-mails recently reminding me to moderate new comments.
Then I remembered that I had recently changed my Gmail password. The reason that that is relevant, in my case, is that I use the “Swift SMTP” plugin from Shift This to send e-mail from my site, which allows me to send mail through my Gmail account. I went into the Swift SMTP options, updated the password, and the blank page problem went away.
There may be some of you who do not use this plugin and are having this problem, but perhaps my experience will give you a hint of somewhere to look for a solution that you hadn’t previously considered.
Good luck!
HB