Hi there,
I would like to know if there is a way to build content blocks with your plugin using WP Bakery Builder?
Regards,
Ruth
]]>Hello,
We’ve been working with your plugin for years without issues. After updating today from 3.2.7 to 3.2.9 our website was completely broken – stripped of CSS, I’m not sure why but it is as if CSS just didn’t apply.
Screenshot: https://ibb.co/jDkf94y
Page in screenshot: https://www.japanese-knives.co.il/shop-by-brand/
We’ve rolled back to 3.2.7.
How can this be resolved?
Thank you
]]>After the update, I have noticed that all the content now display it’s HTML code as the content on the front end.
For example, it show display like this
TEL : 123456789
Email : [email protected]
Now it’s showing as
<p><i class="fas fa-phone-square-alt"></i> TEL : 123456789<br /><i class="far fa-envelope"></i> Email : <a href="mailto:[email protected]">[email protected]</a></p>
Am I missing something? I haven’t touch any setting yet, just like to find out how I can resolve this. Thank you.
]]>Hi – I am creating a columns using Kadence. Within this column I created an Info Box. All looks well in the backend.
However, the icon size does not reflect in the front-end.
Please advise.
]]>When I want to add a new content block there is no option on the page for adding and editting a block , I have some other content blocks that have been created before and now are active but when I want to edit them nothing is shown and I just see the block name and shortcode thats why everytime I need to test some of the blocks on the front end to find out the right one if I want to use it on a new page . What should I do now as Iam not able to create any new block. thanks
]]>I see there is an option to use a slug with the shortcode, but how do you set a name for the slug? It looks like your plugin generates the slug name itself, but I want to set my own name that would be more useful and remind me of which block it is.
]]>Good morning. If I try to insert the CONTENT BLOCK into the widgets, this warning appears: “The “custom_post widget” block contains errors and may not work properly. Check with Developer Tools for more details”.
Using WP 6.3.2 – Template: EXTRA (Elegant Themes)
]]>Hello,
Since we moved to PHP 8.1 this appears in the log many times:
[17-Oct-2023 14:20:18 UTC] PHP Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/abc/public_html/wp-content/plugins/custom-post-widget/post-type.php on line 48
How can this be resolved?
Thank you
]]>AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “custom_post_id” in […]/wp-content/plugins/custom-post-widget/widget.php on line 79 PHP message: PHP Warning: Attempt to read property “post_content” on null in […]/wp-content/plugins/custom-post-widget/widget.php on line 90’
That’s with PHP 8.1.2, not fatal but spams the error.log
Sometimes my content blocks created with this plug changes when displayed in the website. See the Promotional Calendar section in above link about 3/4 way down. It displays a default font other than the font on my pages
]]>Hi @vanderwijk,
I just got a notification in my WordPress about a new version of your plugin – version 3.2.5. However, there is no changelog entry for this version at https://www.ads-software.com/plugins/custom-post-widget/#developers nor in the readme.txt file.
Could you kindly update the changelog in those two locations? Also for versions 3.2.3 and 3.2.4 which are also missing?
]]>I find that the content_block shortcode will not process (i.e., the shortcode code displays, not the return of the shortcode) in some situations when custom shortcodes I’ve created DO process.
For example, I created a Custom Post Type for which I want the Description (which appears at the top of the CPT archive page) to be created/edited by my client. So, instead of hardcoding the Description inside the function that registers the CPT, I created a Content Block to store the CPT description. I added placeholder content.
I have a function that returns the description, which originally was this…
function seba_directors_blurb() {
$output = '<p>This is a description of this CPT.</p>';
return $output;
}
In the CPT registration function, I have this line…
$args = array(
'label' => __( 'SEBA Director', 'text_domain' ),
'description' => seba_directors_blurb(),
{etc.}
Then, after adding the Content Block for the CPT description, I altered the first function to be this…
function seba_directors_blurb() {
$output = do_shortcode('[content_block id=1118]');
return $output;
}
The result is that this appears on the front end:
[content_block id=1118]
However, when I created a simple custom shortcode that returns placeholder text, it works.
I hope this makes sense. Any thoughts?
]]>Hi –
We love this plugin and have donated to thank you.
One limit is that if we insert an <img>
into a Content Block it appears on the page without WordPress’ srcset. As a result all visitors get the largest image size.
Have you thought of a way to pass all <img>
through wp_get_attachment_image_srcset().? Maybe this will implement <picture> and srcset, like Gutenberg blocks
I’m not certain about this, and could be wrong.
Thanks for the excellent plugin.
]]>Great utility plugin. I use it with my more savvy clients.
Please consider, in a future update, showing the ID-version of the shortcode (that can be copied/pasted) in the “View all Content Blocks” list view. Clicking to edit the post, just to see and copy/paste the shortcode is unnecessary (but certainly not onerous) “work”.
]]>For some reason when I create a content block, a different typeface is shown when placed in my content. This occurs randomly. I usually create the content on a page and then copy that page to the content block and save it. I have tried creating it in content blocks. Previously, this has worked.
See the bottom of this page under More Back To School. It picks up a typewriter font.
Hi,
I want to add “class” in title.
How can I add?
Best Regards.
]]>My Content Blocks are displaying Jetpack Related Posts.
Obviously, I want related posts to appear after my posts, but not after my content blocks.
Jetpack Related Posts appear within the Content Blocks div with the css:
div id="jp-relatedposts" class="jp-relatedposts">
Any suggestions on how I can hide related posts just in Content Blocks?
Thanks.
]]>I also would like to have Visual Composer available in the content blocks editor.
I found another thread requeseting this here:
https://www.ads-software.com/support/topic/doesnt-work-with-wpbakery-page-builder/
I added the function to function.php
function filter_content_block_init() {
$content_block_public = true;
return $content_block_public;
}
add_filter(‘content_block_post_type’,’filter_content_block_init’);
This seems to have no effect. Any ideas?
I know this isn’t officially supported so any advice you can offer is welcome! Thanks.
]]>Hello,
There is a notice that constantly appears in the log:
[16-Mar-2021 10:16:34 UTC] PHP Notice: Undefined variable: located in /home/xxx/public_html/wp-content/plugins/custom-post-widget/shortcode.php on line 56
Can a fix be issued?
Thank you
]]>Firstly, thank you for creating and maintaining this plugin – it is very useful!
I have just updated to v3.2 from v3.1.5 and receive the following error (PHP Notice) in my WP_DEBUG file on every page:
[15-Mar-2021 22:58:55 UTC] PHP Notice: Undefined variable: located in /home/customer/www/dev.ksa-uk.net/public_html/wp/wp-content/plugins/custom-post-widget/shortcode.php on line 56
Please help me to understand and resolve this issue.
FURTHER INFORMATION
Line 56 in shortcode.php reads:
if ( ( $located ) ) {
I am using Content Blocks to add a couple of theme footer elements, just some text, using the code below:
<!-- wrapper -->
<div class="wrapper wrapper-copyright">
<!-- footer -->
<div class="copyright-container" role="contentinfo">
<!-- copyright -->
<div class="copyright clear">
<div class="left">
<?php echo do_shortcode('[content_block id=547]'); ?>
</div>
<div class="right">
<?php echo do_shortcode('[content_block id=549]'); ?>
</div>
</div>
<!-- /copyright -->
</div>
</div>
<!-- /wrapper -->
I have similar issue to this one: https://www.ads-software.com/support/topic/conflict-with-elementor-3/
I use Elementor.
When i use a shortcode the whole content of the page is output instead of the content block.
Hello,
Writing to request the following feature:
The ability to add parameters to the shortcode that will replace text in the content. Like the following:
/* The Content Block content: */
Please enjoy this {{arg0}} coupon.
/* The post where the shortcode is used: */
[content_block slug=example-block arg0="50% off"]
/* The above two code blocks would then output: */
Please enjoy this 50% off coupon.
Here is code for a simple implementation of this feature–there is certainly a more elegant approach to this, but this is an example. This currently lives in the custom_post_widget_shortcode function in the foreach( $content_post as $post ) loop in post-widget.php.
for($i = 0; $i < 12; $i++) {
if($atts['arg' . $i]) {
$content = str_ireplace("{{arg" . $i . "}}", $atts['arg' . $i], $content);
}
}
Let me know your thoughts. Thank you for your plugin!
]]>It not a matter that I need help but an urgent request that you update to WP 5.6 and for use with PHP 8.0. Current situation: errors when doing this, until after deactivating your plugin.
Wordpress also indicates: ‘this plugin is not tested with 5.6’.
So I think it is time to do so!
]]>Thanks for the excellent plugin.
Is there a way that we can turn off apply_filters( ‘the_content’, $content) for all Content Blocks?
If we were adding Content Block shortcodes in a WIDGET we could use the built-in checkbox “Do not apply content filters”. But we are not. Instead we insert the Content Block shortcodes directly into posts and pages where there is no checkbox.
The reason is that we are trying to avoid WordPress formatting Content Blocks with intermittent paragraph and break tags.
]]>Love the plugin!
Has anyone been able to successfully add a Category taxonomy to the Content Blocks custom post type?
This would help us in the backend to better sort the hundreds of content blocks that we created/
About 8 years ago someone posted this code. It *should* work. But it does not bring up a Category metabox in Content Blocks or add it to the Content Blocks archive page.
function reg_tag() {
register_taxonomy_for_object_type('category', 'content_block');
}
add_action('init', 'reg_tag');
]]>
The shortcode created for content blocks to be used in posts and pages is also causing sassy social share icons to display in pages and posts.
]]>IF I leave Do not apply content filters unchecked I receive a 502 error while saving and on the page being edited as well.
If I do check it, the background image applied to the row does not display.
The site is not currently public so I can not share a link but would be happy to give access to site if that would help.
]]>Would there be any way to use php in a Content Block — say, using wp_query to call a post excerpt — and place in a post with a Content Block shortcode?
I can do this now with a combination of the PHP Code Widget and amr shortcode any widget, but Content Block would be more efficient if I can use it to bypass the PHP Code Widget.
Thanks!
]]>I checked your documentation and did a forum search, but I do not see this question addressed. I need the information for privacy policies.
]]>Hello!
Since I updated Polylang to version 2.8 the Custom Post Widget has no more multi-languages capabilities : the language selector has disappeared on block edition form and the block showing on website is not translated.
Can you help me with that ?
Thanks in advance !
]]>