Forum Replies Created
-
AuthorPosts
-
November 25, 2022 at 11:19 PM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39330
AJ Tatum
ParticipantI enabled JUST the Meta Box and Meta Box AIO plugins, and not "MB Custom Post Types & Custom Taxonomies" plugin (that's left deactivated), but I have a post type with the slug "podcast" and "Prepended permalink structure" is unchecked. However, if I go to mydomain.com/podcast I get a 404 error. That's the same with all my other CPTs. One thing I can think of is that I recently switched hosting providers and they use NGINX as opposed to Apache. Would that play any role with this not working as expected?
Also, just curious, but it seems that I don't need "MB Custom Post Types & Custom Taxonomies" or "MB Relationships" as separate plugins if I have Meta Box and Meta Box AIO activated. Is that correct?
November 25, 2022 at 10:53 PM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39327AJ Tatum
ParticipantJust as an FYI - this has broken accessing CPTs by the URL slug. So, I've had to disable this module and remove CPTs temporarily from the Navigation. CPTs is the primary use of Metabox for me. I've tried redownloading the plugin from the site and it was the same version I have installed (2.3.4), but the issue still occurs.
June 19, 2022 at 12:25 PM in reply to: ✅Website (wordpress) slows down dramatically when I enable Metabox plugin #36574AJ Tatum
ParticipantThis is also an issue for me, especially when I have user front end forms enabled or user profile editor. I've even gone so far as you trying tool set but wasn't impressed. However, I am beginning to look at alternatives that seem to be less demanding than metabox yet more powerful.
AJ Tatum
ParticipantSorry to revive an old post, but you really didn't answer the question as to if it is possible to create a link directory with metabox. I'm assuming so by creating custom post types and taxonomies as well as custom fields, but I'm unsure that the complexity that would be required to display such data such as ratings, etc. Additionally, I'm also not sure about the search or facet capability as I didn't have much luck with FacetWP and haven't tried SearchWP. So would you be able to give any pointers or suggestions as to how one would approach this? I understand the permalinks and have that solved with permalinks manager Pro.
AJ Tatum
ParticipantI ended up using a snippet instead of trying to use the short code so that it would redirect the user if there was a redirect_to in the query string. Here is an example: https://gist.github.com/ajtatum/8e20f51b1d1dfe739b59f68e64fceb96
AJ Tatum
ParticipantI think the next issue I'll run into is adding the title attributes to the SVG. I found https://kevin-ang.medium.com/inline-svg-system-in-wordpress-or-php-development-838dad423e76 and it has pretty good documentation on how I can achieve what I want, but can MetaBox run custom functions or just built-in WordPress functions?
January 29, 2022 at 1:12 AM in reply to: ✅How to specify Alt and Title Tags for get_the_post_thumbnail? #33550AJ Tatum
ParticipantThanks. Since that just generates the URL and not a source set, I eventually found a different way to approach it by using get_post_thumbnail_id, get_the_post_thumbnail_url, and then wp_get_attachment_image_srcset. This isn't a finished project, but here's what it looks like now: https://gist.github.com/ajtatum/e141af8edbb27a28d47352c7e9660749
AJ Tatum
ParticipantThanks, that got it working but noticed it didn't generate a source set. After doing some digging, I decided to add a filter to the get_avatar function (see here: https://gist.github.com/ajtatum/4d8c1590b5205e9e6b93b111610fe191)
And the MetaBox view now just has
{% set author_name_array = [author.first_name, author.last_name] %} {% set author_name = author_name_array|join(' ') %} {{ mb.get_avatar( author.ID, 150, 'wavatar', author_name ) }}If you know of a better way to accomplish it, let me know, but, for now, this works!
Thanks,
AJ -
AuthorPosts