How to allow Contributors to edit their own posts, whilst still needing to be reviewed by an admin?

Steps for setting edited posts by contributors to “pending review”: 1. Adjust Contributor Capabilities Your modifications to the contributor role are appropriate for allowing them to edit their posts. Ensure they can edit posts but cannot publish them. 2. Automatically Revert Posts to “Pending Review” on Edit Add the following code to your functions.php. This … Read more

post loop with different design depending on post

Your $count++ needs to be after your endif statement. It’s not counting up because your counter is always at 0 which means you’re always in your “if” portion of your statement not your “else”. Like this: $args = array( ‘post_type’ => ‘post’, ‘post_per_page’ => 3, ); <?php $loop = new WP_Query($args); $count = 0; while … Read more

posts blocks don’t show up correctly

On the broken page, your per-item div looks like <div itemscope=”” itemtype=”http://schema.org/Product” class=”edd_download” id=”edd_download_28068″ style=”width: 33.3%; float: left;”> That width: 33.3% is wrong: the containing <div class=”edd_downloads_list edd_download_columns_3″> already does the three column layout, so this extra width style means each item should only use a third of the width of the column. You need … Read more

Adding Blocks within Blocks

If you’re talking about nested Gutenberg blocks, you only need to add the InnerBlocks component. I think this is what you’re looking for : https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/ Here you have all the code you need and most of the use cases. Hope it helps !

Edit Page button is gone

Check under settings -> reading and select the page where you want to show your blog posts. Then this becomes your blog page. You can set it to the home page or choose a static page for your home page. See more info here: https://wordpress.org/documentation/article/settings-reading-screen/ You usually can’t change the layout/content of the blog page … Read more