Get post title by Alphabet

You have two problems. First need to global $wpdb;. Then you are using the_title() and the_permalink() both of which automatically echo out a value. So you need to switch them to get_the_title() and get_permalink(). function get_post_by_alphabet($the_char){ global $wpdb; $first_char = $the_char; $postids=$wpdb->get_col($wpdb->prepare(” SELECT ID FROM $wpdb->posts WHERE SUBSTR($wpdb->posts.post_title,1,1) = %s ORDER BY $wpdb->posts.post_title”,$first_char)); if ($postids) … Read more

Restore Category Base

This question was most likely down voted because the answer is in the plugin support forum. As stated by others in the comments, set default permalinks and save settings. Clear cache. Set permalink structure to what you want and save. Also, feel free to look in the database. where is permalink info stored in database?