Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Hein,
You have 2 cloneable fields, so when you use the shortcode to output, each of them will output in a unordered list.
To fix this, please use this PHP code instead of shortcode:
$texts = rwmb_meta( 'text_1' ); $urls = rwmb_meta( 'url_1' ); if ( ! empty( $texts ) ) { echo '<ul>'; foreach ( $texts as $k => $text ) { echo "<li><a href='{$urls[$k]}'>{$text}</a></li>"; } echo '</ul>'; }Anh Tran
KeymasterWe have a demo site at https://demo.wpautolistings.com, but we don't have demo account yet.
Anh Tran
KeymasterSorry for the frustration. I'll check that next Monday and will fix the bugs if there's any.
February 22, 2019 at 7:58 PM in reply to: ✅No custom post fields for Authors and Editors with Guttenberg #13441Anh Tran
KeymasterOh, I got it. These user meta are used by WP to store meta boxes state (visible/hidden) and their order (users can reorder). Looks like Gutenberg doesn't handle these settings properly.
Yes, you can remove them without any problem. Meta Box won't be affected by that.
Anh Tran
KeymasterHi, I've just added that to the plugin. See it on Github. See sample code.
Anh Tran
KeymasterHi Lukas,
If you see "No results found", then the autocomplete works. It queries to Google and no results found, it notices you about that.
Can you try setting the language or the region of the map? It might help to provide some results.
Anh Tran
KeymasterIt looks fine to me: https://imgur.elightup.com/vMKGtCU.png. Can you send me the full code to check? I see you have several fields with tabs.
February 22, 2019 at 4:31 PM in reply to: Can I add custom CSS for a post based on a Meta Box field state? #13434Anh Tran
KeymasterI think your solution is great. It might be a little bit tricky, but it works. While working with BB, I also did some tricks like that.
I'm thinking about another (similar) solution that might not need an textarea. I'd insert an HTML module with the CSS code, and use BB's Conditional Logic to hide it when the event is not repeatable. I think it's shorter than your solution.
February 22, 2019 at 4:23 PM in reply to: ✅No custom post fields for Authors and Editors with Guttenberg #13433Anh Tran
KeymasterGutenberg submits posts via Ajax, but the Include Exclude extension that you're using uses PHP to filter the meta boxes. So, it needs refreshing the page.
To make it work without refreshing the page, I'd suggest using Conditional Logic. However, it doesn't work with WordPress's category box yet.
February 22, 2019 at 2:43 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #13430Anh Tran
KeymasterHi Hansjakob Fehr,
I misunderstood in the previous replies. My replies above worked for WordPress's taxonomy box.
For your situation, as the conditional field is just a normal Meta Box field, you don't need complex conditions. Instead, you can just write:
'visible' => array ( 'when' => array ( array('medium', '=', 2 ), ), ),Where
2is the ID of the termbuch. The taxonomy advanced field uses term IDs, so we have to use them instead of slugs.February 22, 2019 at 2:24 PM in reply to: ✅No custom post fields for Authors and Editors with Guttenberg #13429Anh Tran
KeymasterHi Paul,
I see you use a condition for the meta box. So the post must in a specific category before the meta box appear. Don't forget to refresh the page after publishing. See my video here: http://recordit.co/ukE4SLIQaD
Anh Tran
KeymasterHi, I've just checked with textarea field and I don't see that problem. I see you entered HTML in the textarea field, so maybe some HTML causes that bug. Can you please post the code of the meta box here to check?
Anh Tran
KeymasterHi Camilo,
I can't replicate this bug. I tried to use a custom API key and the plugin enqueues the correct URL. Can you try deactivating all other plugins and test with a simple map field to see if the bug still presents?
Anh Tran
KeymasterHi Sam,
This needs some custom development. Meta Box only helps you to submit posts from the front end. I suppose you have to do some extra steps like:
- Creating payment post types
- Process the payments
- Log the payment
- Let users submit posts when payment is paid
- Connect payment and submitted posts (or update to user profile)
We have done similar thing for Frontend extension for Auto Listings plugin. I must say it's quite a lot of custom work.
February 22, 2019 at 9:31 AM in reply to: ✅No custom post fields for Authors and Editors with Guttenberg #13424Anh Tran
KeymasterHi, do you use any conditions for meta box or fields?
I've just tested with Gutenberg and Contributor role and it seems to be fine. Here is my screenshot:
-
AuthorPosts