Support Forum » User Profile

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: How to translate custom post type name? #36029
    ViktorViktor
    Participant

    I'm using Oxygen, so no theme, but even with a theme it obviously won't know how to call this CPT unless it is manually translated. Abstracting from the tab's title, how do you usually translate the names of the CPTs created in MetaBox

    in reply to: How to translate custom post type name? #36015
    ViktorViktor
    Participant

    Thanks for the reply Long. I want to translate the name of the CPT. I have already enabled the CPT in Polylang and can create posts in each language, and archives work correctly. It's just that the title of the archives is always the plural name that I have set in MB and I don't know where to translate it.

    in reply to: Single Image custom field is not showing in frontend #33239
    ViktorViktor
    Participant

    I just faced the same issue on the Oxygen 3.9 release. Wasn't it fixed in the final version?

    in reply to: CSS not working for views #32812
    ViktorViktor
    Participant

    Thanks for acknowledging it and providing the previous version. I was also surprised by this bug.

    in reply to: Google Maps not reading API key from MB Builder #30475
    ViktorViktor
    Participant

    Thanks Long!
    Can I pass all the js_options this way as well? Could we also use these options with standard Views methods?

    in reply to: Google Maps not reading API key from MB Builder #30469
    ViktorViktor
    Participant

    After further research, I realised the issue is coming from MB Views actually. If I show the map using rwmb_meta it works fine, however, using MB Views as a shortcode containing this: {{ post.mb_sites_map.rendered }} always uses the hardcoded Maps API key in metabox and ignores mine in the MB Builder.

    How can we use MB Views for Google Maps with our own API key then?

    ViktorViktor
    Participant

    Thanks Long but would this also make the images show on the back-end in the translated posts or is it just a solution for the front-end? In my case the images are missing in the back-end and hence in the front-end as well.

    in reply to: twig REST API error #29982
    ViktorViktor
    Participant

    Here is a var_dump(clone):

    
    array(2) {
        ["retailer_price"]=> string(3) "450"
        ["retailer_cpt"]=> array(9) {
            ["ID"]=> int(14) ["title"]=> string(16) "Some retailer"
            ["excerpt"]=> string(0) ""
            ["content"]=> string(0) ""
            ["url"]=> string(55) "https://example.com/retailer/some-retailer/"
            ["slug"]=> string(16) "some-retailer"
            ["date"]=> string(19) "2021-08-06 07:15:07"
            ["modified_date"]=> string(19) "2021-08-06 07:23:01"
            ["thumbnail"]=> array(8) { ["thumbnail"]=> bool(false) ["medium"]=> bool(false) ["medium_large"]=> bool(false) ["large"]=> bool(false) ["1536x1536"]=> bool(false) ["2048x2048"]=> bool(false) ["post-thumbnail"]=> bool(false) ["full"]=> bool(false) }
        }
    } 
    

    My goal is to sort the clones by retailer_price. Everything is an array, so I am not sure why it shows type "Null" in the logs.

    in reply to: twig REST API error #29981
    ViktorViktor
    Participant

    Here is the log of the error:

    
    [06-Aug-2021 20:43:00 UTC] PHP Fatal error:  Uncaught MetaBox\Dependencies\Twig\Error\RuntimeError: The sort filter only works with arrays or "Traversable", got "NULL" in "relationship-view" at line 1. in /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Extension/CoreExtension.php:914
    Stack trace:
    #0 /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Environment.php(358) : eval()'d code(38): twig_sort_filter()
    #1 /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Template.php(394): __TwigTemplate_fe2758630feb60b056deac33be7db367a9a38638a1d420f2e9909dcd82463035->doDisplay()
    #2 /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Template.php(367): MetaBox\Dependencies\Twig\Template->displayWithErrorHandling()
    #3 /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Template.php(379): MetaBox\Dependencies\Tw in /var/www/wordpress/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/dependencies/Twig/Extension/CoreExtension.php on line 914
    
    in reply to: How to sort a query/table? #29972
    ViktorViktor
    Participant

    I managed to use clonable groups and the sort method of twig as in here: https://stackoverflow.com/a/57934908/7132379

    in reply to: Restrict post id queries in MB Views shortcode? #29395
    ViktorViktor
    Participant

    Hi Long,
    Thanks for the reply. Perhaps I wasn’t clear.
    I want to have a table like this - link but allow the the user to manually select which posts to compare. I was thinking of this working through a modified shortcode but maybe I can set a clonable dropdown field to select the table columns which MB Views then cycles through and pulls. What do you think?
    Thanks

    in reply to: Relationships suddenly stopped working #29186
    ViktorViktor
    Participant

    It seems the problem is caused by the "exclude from search" option in the custom posts. The same problem as here:
    https://github.com/wpmetabox/mb-relationships/issues/9
    https://github.com/wpmetabox/mb-relationships/issues/39
    What exactly do we need to implement the fix?

    in reply to: Relationships suddenly stopped working #29183
    ViktorViktor
    Participant

    I played a bit more with it and out of 4 post types, the admin columns work fine on 2 but have the problems described above for the other 2. I really cannot figure out what is going on.

Viewing 13 posts - 1 through 13 (of 13 total)