These are the questions that I wind up answering over and over and over again — collected in one easy spot, so that I only have to write a link instead of a whole explanation. :)
- How do I put the table of contents at the bottom of my posts?
- I want the table of contents to show up when I view the post by itself, but not on the home/category/archive (or other) page(s) — can this be done?
- I upgraded from a prior version of In Series, and now I’m getting database errors and/or don’t see any of my old series and/or I get some error about foreach when I try and update In Series options — how do I fix this?
- The plugin won’t load because of “fatal errors” — what’s wrong?
This answer applies to 3.0 versions of In Series, and the advanced mode of 3.1 and later versions of In Series.
The quick solution is to go to the Options tab and the Series sub-tab in the WordPress admin interface, clear the “Post layout” field, and then paste “%content <div class=’series_links’>%prev %next</div><div class=’series_toc’>%toc</div>” (without the outside quotes) into the “Post layout” field. Click “Update Options »” to save your settings, and you’re done.
For more details, you can refer to the documentation.
I want the table of contents to show up when I view the post by itself, but not on the home/category/archive (or other) page(s) — can this be done?
In the 3.0 versions, this can be done by hacking your theme with In Series template tags. The 3.1 versions will support differing layouts on single- and multi-page views natively, without requiring theme hacking.
I upgraded from a prior version of In Series, and now I’m getting database errors and/or don’t see any of my old series and/or I get some error about foreach when I try and update In Series options — how do I fix this?
Do not try to re-create your old series!
If you attempted to re-create your old series by hand after an upgrade, please undo all your changes. Your old series are still stored in the database, and can be upgraded automatically, but you must not have both old and new post data in the same database when performing the upgrade.
In Series will perform upgrades from any prior version of In Series — however, you must de-activate and re-activate the plugin for the upgrade to occur. If you just copy the files over the old ones, the upgrade will not take place (which means your old series won’t appear to exist any more), any new database tables will not be created (so, you’ll get a bunch of SQL errors), and new options won’t have their default values set properly (leading to foreach errors on the In Series options page).
Clearly, something is wrong — but unless you tell me what the fatal errors are, I’m as clueless as you are as to what caused the problem. Enable the display_errors setting if it’s not already enabled (either directly in your php.ini, or using the ini_set function), and send me the complete error message using the contact form.
For the sake of posterity, prior “fatal error” activation issues were caused by: