getEntityRecord without knowing the post type
In Gutenberg there’s the getEntityRecord selector that allows you to get the data of a post of a specific post type:
In Gutenberg there’s the getEntityRecord selector that allows you to get the data of a post of a specific post type:
I have a custom block that needs a URL attribute. I figured it made sense to set the URL in the sidebar or the toolbar, but I can’t find a way to do it. I’ve tried:
I disabled Gutenberg web builder/ editor using the following code:
In a plugin I’m building for Gutenberg, I register a meta field named _related_posts, which stores an array of post ids:
I’m currently creating a custom post type in wich I want to add some custom meta boxes. All the fields just go as expected excepting a checkbox field wich prints on the html checked=’checked’ after echoing the hidden field and I don’t know why. I’ve tried not echoing the value or the referer but still happens. This is my code:
I am developing a plugin that has a custom post type. This post has a lot of meta data but I also need to attach some images to this post. What is the best way to upload an image that is related to my custom post type? I have seen some functions like media_handle_upload() and media_sideload_image() but I don’t know if they are the best solution and if so how to implement them in my code.
For the text fields I use this format
I need a solution to do this with WP. In admin: I need to input data into database (name, surname, certification, level, date of issue). In Frontend: client can use a specific search field to search within the inserted data and get a table with the results. (name, surname, certification, level, date of issue). Any … Read more
I think maybe my understanding about rewrites and templates for custom taxonomies and CPTs is wrong and maybe someone here could help me solve my problem and educate me.
On my newly installed multisite with 1 installed plugin ACF. And all code below is not being run though any filter or action and on the front end.
I’m trying to display some text on my page, generating it via get query string, e.g. calling this url:
mysite.com/page/?letter=exampletext