Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter foxtrot123

    (@foxtrot123)

    Any suggestions?

    Thread Starter foxtrot123

    (@foxtrot123)

    Fixed it. Somehow editing the title and/or permalink screwed up the reference to the post in the SQL database. I found two duplicate references regarding the post in the SQL table wp_redirection_items. I deleted one and the problem is fixed.

    Forum: Fixing WordPress
    In reply to: Create a test site
    Thread Starter foxtrot123

    (@foxtrot123)

    And I guess the same questions still apply:

    > … and load WP in the root folder of the subdomain

    1. How do I “load WP” in the root folder? Do I do a fresh install and copy over certain files from my current site? (and then run the queries on the database?) Or do I copy and paste every folder and file from my current site, and this somehow ‘installs’ WP and duplicates my site (and then run the queries on the database?)

    2. Do I use the .htaccess method to password protect the subdomain?

    Thanks for your help.

    Found the fix!

    You need to edit a line in your theme’s header.php file.

    1. In your WordPress admin panel, go to Appearance > Editor
    2. On the right, under Theme Files, select the “Header” link (for the header.php file)
    3. Do a search (CTRL+F) for “list_categories”
    4. You should come to a line that looks something like this:

    <?php wp_list_categories('title_li=&exclude=' . $GLOBALS[asides_id]) ?>

    (The stuff between the parentheses will vary by theme.)

    5. Add “&hide_empty=0” (without the quotes) right before the last apostrophe (the ‘). (Basically, between these apostrophes is where you can add arguments. Arguments are separated by ampersands (&).

    So in the above example, the edited line looks like:

    <?php wp_list_categories('title_li=&exclude=&hide_empty=0' . $GLOBALS[asides_id]) ?>

    6. Click Update File and check your website. All categories should now show, whether they have posts or not.

    Note: This may also add the dreaded “Uncategorized” category item. If you want to exclude that, find its category ID* (it’s probably “1”), and edit the line so it includes “&exclude=1” (assuming 1 is the ID) like this:

    <?php wp_list_categories('title_li=&exclude=&hide_empty=0' . $GLOBALS[asides_id]) ?>

    * How to find the category ID: http://www.wprecipes.com/how-to-find-wordpress-category-id

    Also, this link lists all the arguments you can add to the wp_list_categories function. http://codex.wordpress.org/Template_Tags/wp_list_categories. For instance, the order_by argument allows you to customize the order in which the categories are displayed (e.g., you can sort them by their IDs to give you full control). By default, it looks like they’re sorted alphabetically.

    Yeah!

    This behavior is by default, and it’s annoying: We should be able to establish and present site structure without content. Or, at a minimum allow WordPress to include on every category page that lacks content something like “No posts yet! Check back later!”

    I would love to see a work around or plugin to get around this.

    I just uploaded smaller versions (1024 x 768) of pictures to a slow Shadowbox gallery, and the gallery pics now load much quicker. I suspect large resolution size is the main cause of the problem you and I are having.

    The downside is that you have to manually resize pictures prior to upload, something I was hoping to avoid. But, if you’re using XP, resizing your pictures is easy with the Windows XP Image Resizer Power Toy available at
    http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx.

    I’m having the same problem, even on computers with excellent performance. I’m using the latest version of WordPress and Shadowbox JS.

    I achieved a slight improvement by removing some of the animation effects. In your WordPress backend:

    1. Settings > Shadowbox JS
    2. Click “Show Advanced Configuration” button
    3. Set “Animate” to False
    4. Click “Save Changes” button at bottom and test. If no improvement, go back and also change “Fade Animations” to False. Save and test again.

    Of course, disabling these settings will disable some of the nice animation effect, but it still looks okay.

    This is just a guess, but you could also try resizing your pictures (to a smaller size) before you upload them. Maybe upload pictures at 640 x 480 or 800 x 600 resolution.

Viewing 7 replies - 1 through 7 (of 7 total)