Harold Angenent
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple content blocks] Installation?I hope this clarifies things about how the blocks are registered: https://github.com/trendwerk/multiple-content-blocks/issues/54#issuecomment-54327005.
Forum: Plugins
In reply to: [Multiple content blocks] Not showing up in adminHi Zwoo,
All pages seem to give a 404 not found (for example: https://blok.aquasoftener.cz/zkusebni-stranka/).
Where did you put the blocks in the code?
Regards,
HaroldForum: Plugins
In reply to: [Multiple content blocks] What is the use of disabling HTTP request in MCB?I’m not sure what you mean. Could you elaborate?
Do you also experience this issue on a clean WP install? If not, it might be a conflict between your theme code or another plugin.
Forum: Plugins
In reply to: [Multiple content blocks] Cannot edit any of my content blocksI would advice you to create your own meta boxes with editors or use the Advanced Custom Fields plugin.
Forum: Plugins
In reply to: [Multiple content blocks] What is the use of disabling HTTP request in MCB?Better back-end performance as well as fixing some bugs for specific server setup that don’t allow HTTP requests.
Forum: Plugins
In reply to: [Multiple content blocks] Data is lost when I try to update page/postI see you’ve already submitted an issue in GitHub, I will reply on that issue.
https://github.com/trendwerk/multiple-content-blocks/issues/71
Forum: Plugins
In reply to: [Multiple content blocks] Block showing after publishing the postJust tested this on a clean install, but I cannot reproduce it. Could you give some steps to reproduce this on a clean WordPress install?
Forum: Plugins
In reply to: [Multiple content blocks] Remove attribute styleI’m not sure. Multiple content blocks uses wp_editor.
Forum: Plugins
In reply to: [Multiple content blocks] Multiple One LineerJust tested this on a clean WP 4.3.1 and it seems to be working.
Forum: Plugins
In reply to: [Multiple content blocks] Blocks not showing in WordPress AdminI’m glad it worked. You should always reset the loop after using
$post
as a variable for something else than the main post.Forum: Plugins
In reply to: [Multiple content blocks] Blocks not showing in WordPress AdminTry calling
wp_reset_postdata()
after your loop or before callingthe_block()
.I believe writing a small piece of code would be better for your overall project, so I’d recommend manipulating
WP_Query
(using thepre_get_posts
filter).I’m not too familiar with that plugin (or any of them) myself, so I don’t know what plugin I would recommend.
You’re right, WordPress doesn’t search post meta. I believe there are several plugins available that do search post meta, but I don’t really have any good experience with them (performance-wise).
You could also manipulate the WP_Query object to search post meta (using a meta_query). I would advice you to thorougly test performance, since doing this could cause trouble on larger websites.
See: https://codex.www.ads-software.com/Class_Reference/WP_Query
Forum: Plugins
In reply to: [Multiple content blocks] Multiple Content Blocks RevisionsRevisions are currently not supported, sorry. It’s on our list of features to build.
Forum: Plugins
In reply to: [Multiple content blocks] Using MCB in a WP_QueryI’m not sure if this is a logic thing to do, but it should be possible as long as you also register the block in the page template itself.
So
page-<child>.php
should also containget_the_block( 'Name of the block' )
.