Change the size of the featured image for post?
You can try this CSS In Customize -> Additional CSS: .post-single-img { width: 500px; margin: 0 auto; } margin: 0 auto is used to center the image
You can try this CSS In Customize -> Additional CSS: .post-single-img { width: 500px; margin: 0 auto; } margin: 0 auto is used to center the image
I solved this problem by just deleting the previously uploaded images from the media library, and re-adding them. So simple. Can’t believe I didn’t think of it earlier.
Ok, to display the latest posts you use default Recent Posts widget. You can see it here: Appearance -> Widgets This widget has no settings and is fine for getting started, you can install any plugin which will add a more sophisticated widget to your site, you just need to search for: Recent Posts Widget … Read more
There are lots of solutions to redirect from the old post URL to the new post URL. You can install a plugin “Safe Redirect Manager” and set it from the admin panel. You can write some snippet in the functions.php file as: add_action(‘template_redirect’, ‘post_redirect_by_custom_filters’); function post_redirect_by_custom_filters() { global $post; // this array can contain category … Read more
$post->post_content empty while all other properties are correct
As posts can’t have parents, there is no endpoint to get the parent ID of a post. However, pages can have parents, so the page endpoint should return a parent ID, among other things. So, by getting mysite.com/wp-json/wp/v2/pages, you should be able to get the parent attribute, which is “The ID for the parent of … Read more
WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
Fixed it! I have now created a single folder in my theme’s directory and put category specific templates in there. To enable this, I added this to the theme’s function file /* * Define a constant path to our single template folder */ define(SINGLE_PATH, TEMPLATEPATH . ‘/single’); /** * Filter the single_template with our custom … Read more
Below MYSQL query return the 10 most common value (words) in a post_title(column) FROM wp_posts(table): SELECT post_title, COUNT(post_title) AS Appearances FROM wp_posts GROUP BY post_title ORDER BY Appearances DESC LIMIT 10
Did you check the “Download and import file attachments” option during export? Here’s an answer talking about it. If no then the data on images simply wasn’t part of the export – but the posts that were exported still reference those image IDs from the old site (which don’t exist on the new site). If … Read more