Changing the Category for all posts of an Author

You could do this with a simple script. IMPORTANT! – Backup your database before doing this & attempt at your own risk. Create a file called changeauthorcat.php in your main WordPress folder. <?php include( ‘wp-config.php’ ); global $wpdb; // Author username $username=”exampleuser”; // New category slug $newCatSlug = ‘examplecategory’; // find the right author $author … Read more

How can I alternate styling of images in a post? [closed]

Florian’s answer is probably your best bet because it gives the author the most control as to how the images are aligned so that would be my first answer. However, if you don’t trust your authors to align the images themselves then we’ll have to go another route. Unfortunately for the reasons you stated above, … Read more

Post URL duplication adds numerical value

Posts have a slug (that’s the last part of the URL), and it must be distinct, even if posts are in different categories. If your only worry is SEO, don’t worry. Google sees the URLs as distinct, and Google is used to dealing with URLs that have a suffix on them, and has no problems … Read more

Is there any hook to change media html in post? [duplicate]

Try adding this to your functions.php – it will wrap the image in the div you want. function filter_image_send_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt) { return ‘<div class=”post-page-image” id=”image-‘.$id.'”>’.$html.'</div>’; } add_filter(‘image_send_to_editor’, ‘filter_image_send_to_editor’, 10, 8);

How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?

Your terminology is a little off. Search implies providing a search word of phrase and receiving matched when it is found in content. What you describe is commonly called filters or facets (sometimes faceted search). Implementing it would depend on your exact data architecture. You might use custom taxonomies, but really there aren’t details in … Read more