Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Plugins are tools to extend the functionality of WordPress.Use the tag to mark questions related to issues and bugs faced in the plugin or its improvement. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.
0
votes
1
answer
1k
views
WordPress Gutenberg How to make TextControl Required?
I want to make this field required. Can anyone suggest how to do it?
<TextControl
tagName="p"
label="url"
placeholder="http://"
focus = {focus}
className="full-width "
value={ …
0
votes
1
answer
1k
views
How to get attributes from block.js into php
I want to create a block to display the latest post.
The post are loading as it should but i want to use "props.attributes.selectAllignment" and pass that as a class inside the php function. This prop …
0
votes
2
answers
302
views
How can I display an attribute from each post inside foreach($latest_posts1 as $post )
I want to display an block attribute named "paragraph" that exists in each post inside a CPT named "test".
I have no issues displaying the current page attributes(selectLgColumns & borderClass). The p …
1
vote
0
answers
20
views
How to load different layouts to display the $post_output in a plugin?
I want to give different layout options to display the card block(Class="card"). I want to create style1.php, style2.php as different styles that will have different layouts and call them in the $post …
0
votes
Accepted
How can I display an attribute from each post inside foreach($latest_posts1 as $post )
I found this https://wholesomecode.ltd/using-post-meta-fields-to-store-attributes-in-the-wordpress-block-editor-gutenberg . This seems a better option. I updated the block attributes with meta & sourc …
0
votes
0
answers
11
views
npm ERR! notarget No matching version found for @wordpress/components@^12.5.0
I am trying to create a Gutenberg block and have issues compiling it. I get this error when I run the following command. Can anyone help me in fixing the issue or atleast suggest/tell me what to do ne …
1
vote
1
answer
424
views
How do I set register_meta for a specific CPT?
I want to set meta for specific CPT. The below code works but it sets the meta for all CPT. How do I set meta for specific CPT? I have a CPT "testimonial" and want to set "_duib_cl_heading" meta for i …
1
vote
2
answers
779
views
How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
In my plugin settings I got the custom post type set in variable $clientlogocptname
$clientlogocptname = get_option( 'clientlogocpt-select' );
How do I retrive the value of $clientlogocptname setting …
0
votes
1
answer
246
views
How to save mediaupload multiple URLs as array meta?
I want to add multiple images to meta. I am able to save single url successfully. I am not sure how to add multiple URLs to meta.
The single image mediaupload works fine. below is the code for it. The …
0
votes
1
answer
51
views
I want to create a search option for CPT using plugin. The search options should search for ...
I want to create a search option for CPT using a plugin. Currently, the plugin displays data from the CPT posts using custom Gutenberg blocks. I am also able to display all post lists. I need to filte …
0
votes
1
answer
2k
views
Custom gutenberg block image preview not working
I created a custom block. It works but not able to get the block preview image working. Is there anything else I need to do? I am using create-guten-block to create the block.
Can anyone please help?
…