Forum Replies Created
-
AuthorPosts
-
PT
ParticipantThank you.
Is there a list of all the filter hooks? I can't find that in the documentation and therefore need to ask you.PT
ParticipantGot it and thanks.
PT
ParticipantI've tested, and they're not working for me.
I know that "I can select all Events and all Pages posts to show the field group" and "I can use the extension include/exclude to add the post IDs". But can I achieve BOTH at the same time, i.e. show the field group to ALL Events posts and SOME Pages posts? If it's not possible, please tell me so. Then I won't waste any more time.
PT
ParticipantHi,
I tried the following filter but it doesn't work.
add_filter( 'rwmb_show_text-field-group', function( $show, $meta_box ) { $post_type = get_post_type(); $post_id = isset( $_GET['post'] ) ? $_GET['post'] : null; $post_id_array = array(40,271,333,335,273); if ( ( $post_type == 'book' ) || ( ( $post_type == 'page' ) && ( in_array($post_id, $post_id_array) ) ) ) { $show = true; } return $show; }, 10, 3 );Do I have to remove the conditions I set through the included/exclude extension?
April 21, 2025 at 10:17 AM in reply to: The best way to organise custom fields and custom post types #48116PT
ParticipantHow about applying multiple field groups to one post type? Will that cause any issues or affect the efficiency of php calls?
PT
ParticipantIt worked with the following function. In case anyone need it.
function sanitize_text_with_br($input) {
// Define allowed HTML tags
$allowed_html = array(
'br' => array(),
);// Sanitize the input while allowing <br> tags
return wp_kses($input, $allowed_html);
}May 16, 2023 at 9:39 AM in reply to: ✅"Group Title" shows the text "{subfield_id}" instead of the value #41833PT
ParticipantHi,
This is the screenshot:
https://1drv.ms/i/s!Ao2msH7yt0j8i_wQgrY7pOth5FaWsg?e=Vvc8VQHere is the JSON. Please refer to the first and second group field.
https://pastebin.com/RMAkJA9wThank you.
May 11, 2023 at 11:38 PM in reply to: ✅"Group Title" shows the text "{subfield_id}" instead of the value #41809PT
ParticipantOf course I did enable the collapsible option. I’ve used many group fields before and this is the first time I had the issue. I want it to show dynamic titles. But it shows simply what I typed instead. It’s {subfield_id} that I should put in, isn’t it?
If it’s not a bug, I can go to mysql to fix it but please tell me where it is and how.December 17, 2022 at 11:11 AM in reply to: Changing the title and sending the list through email #39883PT
ParticipantIs there any hook that I can use to change the title and the empty message in the posts.php?
I don't think it's a good idea to install a plugin to change the phrase "Favorite Posts" to "My List".December 16, 2022 at 6:57 PM in reply to: Changing the title and sending the list through email #39855PT
ParticipantTo clarify more about the situation. I've enabled for non-logged in users. Therefore, the list sent is for non-logged in users.
Thanks.PT
ParticipantFatal Error here too.
PT
ParticipantHi,
Not only the settings page.
The frontend also reverts back.
Thank you.PT
ParticipantHi,
I was told by the Oxygen team that this is a wordpress oddity...
Anyway, there's a way in CPTUI that I can add the custom post types to the default category and taxonomy archives.
(https://docs.pluginize.com/article/post-types-in-category-tag-archives/)Is there anything similar that I can do in Meta Box?
Thank you.
PT
ParticipantHi,
The website posts has created many tags. Then I created a Custom Post Type and add a CPT post uses a tag that ordinary posts used.
The backend shows that the tag has 2 posts
https://tinyurl.com/2brtq3czBut when I click on the tag at frontend, only 1 post (the ordinary post) shows up.
https://tinyurl.com/24k77l7sThe CPT post with the same tag didn't show up
https://tinyurl.com/2dax475nHere is the link listing CPT post
https://lastgoodbye.hk/news/Thank you.
PT
ParticipantThank you.
Is there a way to prevent the lost of group values after migration? I don't want this happen again in the future.
-
AuthorPosts