Michael Goitein
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Sidebar Per PageThis an answer for JT101 –
James, I figured this out for a recent project – You just need to take archive.php (singular, not plural), and duplicate, and give it the name category-17.php (or whatever the cat ID is).Customize that page as you’d like. Then, in that page, when you call the sidebar, put the call like this:
<?php get_sidebar(‘cat17’); ?>
You’ll now have to create a custom sidebar:
sidebar-cat17.php
Now, this is the trick that makes the sidebar come up consistently throughout all posts in the category; you’ll need to go into single.php, and put this logic:
<?php //to be able to use this outside the_Loop if ( have_posts() ) { the_post(); rewind_posts(); } if ( in_category('17') ) { get_sidebar('cat17'); //gets sidebar-cat17.php } elseif ( in_category('75') ) { get_sidebar('cat75'); //gets sidebar-cat75.php //repeat as necessary } else { get_sidebar(); //gets sidebar.php } ?>
Other conditional statements only call the sidebar for the category page, not for any of the post child pages.
Forum: Plugins
In reply to: [Plugin: reCAPTCHA Form] Headers already sent errornabtron – Your brief input proved the difference. Moving from one host to another pinpointed a couple of lines of black space after the ?> at the bottom of a couple of plug-in php files. Fixed those, and refreshing permalinks did the trick.
Much appreciated.Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No SLIDESHOW after upgrading to 1.1.0 :-(Also, don’t forget zenkilye’s tip above – for some reason, the new instances of the site wouldn’t let me use relative paths, so I had to paste in the explicit URL of the imagerotator.swf file, complete with the https://www.domain.com/wp-content/uploads/
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No SLIDESHOW after upgrading to 1.1.0 :-(I was having a heck of a time with this – moving a development version of a site with NGG to two separate instances of staging and live on another box. I could not upload any images, the images would not appear, and I couldn’t fill out any of the options in the NGG admin.
Here’s how I fixed it:
- First off, go to WP Settings >> Miscellaneous
- Check to make sure that the first field is set properly:
- Store uploads in this folder: wp-content/uploads
- Next, go to NGG Gallery Settings >> Setup
- Click the button marked “Reset settings”
- Bingo
- Now go back in and update your settings throughout the Gallery admin panel
Forum: Fixing WordPress
In reply to: Image upload problemsI was creating another instance of a WordPress installation on the same server, and had the exact same problem on the new site. After checking permissions on the /wp-content/ and /uploads/ folders, and finding everything in order, and switching from the Flash to the browser uploader, I was stumped. And this thread provided no help.
However, by chance, I went to Settings >> Miscellaneous.
Under that tab, I found this information:
Miscellaneous Settings
Uploading Files
Store uploads in this folder: /home2/xxxxxxxxx/xxxxxxxxx/public_html/OLD_INSTALLATION_FOLDER/wp-content/uploads/Changing this to the correct wp-content/uploads (as suggested in italics next that settings box) immediately corrected the problem.
Please forgive me if this is an uninformed post; I’m focusing more on the white screen of death on the admin than on anything else. Not sure if it comes down to cookies or not, although this is how I was able to track this down and fix it. It appears to have something to do with whether you have PHP 4 or 5 installed.
Following the instructions here to the letter:
https://michaeldoig.net/4/installing-mamp-and-wordpress.htm
I got this to work fine.
When I tried to follow different directions (although also quite good):
https://www.bleikamp.com/2006/11/16/wordpress-on-a-mac/
I got the white screen of death. The only difference in the installation was choosing PHP 4 or 5 (you have to choose 4 as of this writing).
Hopefully, for those of you for whom the “final fix” above did not work, this will work fo you & help avoid the hours of frustration you may have run into.
Forum: Installing WordPress
In reply to: User end works, admin is white screen?I think I may have tracked this down. It appears to have something to do with whether you have PHP 4 or 5 installed.
Following the instructions here to the letter:
https://michaeldoig.net/4/installing-mamp-and-wordpress.htm
I got this to work fine.
When I tried to follow different directions (although also quite good):
https://www.bleikamp.com/2006/11/16/wordpress-on-a-mac/
I got the white screen of death. The only difference in the installation was choosing PHP 4 or 5 (you have to choose 4 as of this writing).