P.S. Everything seems to be fine on previously created pages.
What version are you using? If it’s the latest version: can you try go to Settings -> Multiple content blocks and disable “HTTP Requests”?
You should be able to visit the page in the front-end and the extra editor will show up.
Another solution: your new page should already be published if you do want to use HTTP Requests.
Yes, it is the newest version of wordpress. Tried to disable HTTP Requests – still the same. Also I’ve checked with already published page as that was what I needed in the first place. I wanted to add some content where was empty before. Editor is gone. Funny enough I tried edit pages where there was content in the second block before, and thre were no problems at all.
If it’s any help the link to website is : http://www.designstest.co.uk/ all pages are based on reallt simple index.php
Code for it:
<?php define('WP_USE_THEMES', false); get_header(); ?>
<aside id="column1">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<p><?php the_block('Sidebar quote'); ?></p>
<?php endwhile; else: ?>
<p><?php _e('Not here'); ?>
<?php endif; ?>
</p>
</aside>
<article class="column2">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( is_front_page() ) { ?>
<h1 style="display: none; height= 0px;"><?php the_title(); ?></h1>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
<p><?php the_content('Custom text to go here'); ?></p>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?>
<?php /* Bottom post navigation */ ?>
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">‹‹</span> Older posts', 'SRPrint' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">››</span>', 'SRPrint' )) ?></div>
</div><!-- #nav-below -->
<?php } ?>
</p>
</article>
<div class="clear"></div>
<?php get_footer(); ?>
Thank you for your help.
By the way, the page I need to add content is NEWS.
Hi
I have same problem with new articles, but when I publish article so then I can edit MCB blocks. I try to enable/disable settings, but those doesn’t help our problem. Now we don’t get wp_remote_get-error, so that’s is fixed new version. I use newest MCB and WP versions.
Br
Ilves.com admins
It seems it only does not work in blog (news) page. Everything seems fine in static pages.
Hi Ilves.com admins and Silvi,
Your problems are not related.
Ilves.com
MCB cannot know what blocks there are on a non-published article. I’m working on a way this might work, but didn’t have time just yet. So an article has to be published before this plugin knows what blocks you want to use.
A workaround is to disable HTTP requests and and click ‘Preview post’ when it’s not published yet. Hope this helps.
Silvi
MCB uses $post (the global variable WordPress uses to define the current post) when defining what page is being viewed. However on the ‘blog’ page, WordPress doesn’t put this blog page in $post. So MCB doesn’t know that there are additional blocks on the news page.
There is a way to know, but it’s not built in at the moment. It’s on the list.
You can try something like this as a workaround (if the page name is “News”):
<?php
$old_post = $GLOBALS['post'];
$GLOBALS['post'] = get_page_by_title('News');
the_block('Sidebar quote');
$GLOBALS['post'] = $old_post;
?>
Thank you very much but it did not work. It’s probably because I use it wrong. I guess I will just find the way around it and will wait for new version 🙂
Thanks again.