READ THIS IF YOU'RE HAVING TROUBLE.
-
Hello All,
I am in the process of updating the plugin to address some issues people have experienced, but I’d like to write a quick FAQ here…doing updates through SVN is kind of a pain since I’ve now set the plugin up with git…but I digress.
I installed MyBooks and my book pages went away!! Did you delete my content?!
No. I didn’t, if you look at your pages, they’re still there. What happened is that when MyBooks was activated it flushed the permalinks to make /books and /books/your-book-title start working so that you could use that post type publicly. For some reason I haven’t quite nailed down yet, the flush permalinks on deactivation doesn’t work correctly, so here’s the fix:
Go to Settings > Permalinks and click “Save Changes” — don’t change anything, just click “Save Changes”
The image of the book appears in my post twice!! I don’t want that.
This is because I wanted the plugin to work out of the box by the user simply uploading an image, setting it to “Featured” and then having the book links and book image show up automatically. Some themes automatically show featured images too…so this causes problems. You can disable it though.
Just go to Settings > MyBooks Settings > Turn Content Filter OFF
This will disable the content filter so that nothing gets added to the content of any “book” single.
I already had a ton of pages called “books” – your plugin broke those and I still want to use them!
I’m on the fence on whether or not to make this an option — but to change the slug, just edit the mybooks.php file in the register_book_init() function, from this:
function register_book_init() { register_post_type('book', array( 'label' => 'Books', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'has_archive' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'books'),
to:
function register_book_init() { register_post_type('book', array( 'label' => 'Books', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'has_archive' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'publications'), //only change this line
change the slug “books” to whatever you like.
After you make this change, go to “Settings > Permalinks” and click Save Changes
- The topic ‘READ THIS IF YOU'RE HAVING TROUBLE.’ is closed to new replies.