slamorte
Forum Replies Created
-
It goes well. There is an free open-source community maintained version of this service. It’s more geared towards developers than the public.
Forum: Plugins
In reply to: [Schema] class-oembed.php is deprecatedThanks, but we’ve already migrated to another plugin
Forum: Plugins
In reply to: [Modern Events Calendar Lite] Calendar jumps to 1970Reverting to 6.4.1 solved the issue.
If you have command line access enter the following:
wp plugin auto-updates disable modern-events-calendar-lite wp plugin delete modern-events-calendar-lite wp plugin install modern-events-calendar-lite --version=6.4.1 --activateYour event data will not be affected.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] Calendar jumps to 1970Same issue on https://idsw.darksky.org/events-2022/
Default list view correctly shows upcoming events. Clicking on “monthly” or “grid” reverts search date to 1970 and obviously displays no events. Clicking on “List” does not correct the issue. Reloading the page does correct the issue.
Issue started with the update to version 6.4.2.
No errors in the error log.
No errors in the console.
Forum: Plugins
In reply to: [Captivate Sync] Need help to integrate ACF with Captivate Sync pluginWe have the same issue.
As far as I can tell, Captivate Sync uses its own non-standard post edit screen. This means there’s no way to extend the Captivate post type with custom taxonomies, ACF fields, custom metadata, and so on. Plugins like The SEO Framework and Yoast will also not work in post edit as designed.
This is super limiting as far as customizing the post type. It means we can’t use your plugin at all and it’s causing us to re-evaluate Captivate as our plugin host. If we wanted to integrate WordPress to Captivate we’d need to rewrite a plugin or API integration from scratch.
The solution for this plugin is for it to use a standard WordPress post edit screen with Captivate’s custom fields added. This would allow developers to properly extend your post type with ACF, custom taxonomies, plugins, and so on.
I had just moved them to GAinWP today, actually.
Forum: Plugins
In reply to: [Native Lazyload] Doesn’t add any attributes to imagesWe have the same issue — no attributes are added at all. Our theme does filter the content, but even after removing our custom filters, this plugin is not adding attributes.
Forum: Plugins
In reply to: [Schema] Modify/Extend code not workingThanks Hesham!
Those are some good workaround to this issue. Now that I know what the issue is I can probably figure out other workarounds.
If I could request a feature it would be for a function that forces schema updates sitewide during development. Something like:
force_schema_cache_rebuild()Or optionally force it on one post:
force_schema_cache_rebuild( post_id )There is a WordPress function that would work for a single post at ID 1234:
delete_post_meta( 1234, '_schema_json_timestamp' );A variant of that might work for a more general schema cache clearing:
function force_schema_cache_rebuild { $post_id = get_the_ID(); if( ! empty( $post_id ) { delete_post_meta( get_the_ID(), '_schema_json_timestamp' ); } }But I have not tested this.
I just finished writing code that populates
$schema['author']with multiple authors from an ACF relationship field. It works great but took ages to test without a schema cache clear during the 20 or so revisions it took me to get it rights.Thanks again for a great plugin!
Forum: Plugins
In reply to: [Schema] Modify/Extend code not workingHi again,
Yes, it’s the post_meta.
I checked the post_meta field and the custom schema is written to post_meta the first time the schema modify code is used. If the modification code uses
$schema['author'] = 'foo', then"Author":"Foo"is written to post_meta.However, modifying the code and reloading the page does not rewrite the post_meta field. Schema is pulling the post_meta version of the schema rather than rebuilding it from the updated code. If I update the code to
$schema['author'] = 'bar', and reload the page,"Author":"Foo"is still displayed.I can delete the post_meta entry and reload the page and see the updated results, but this make testing and development rather slow.
The modification code may need an additional function that removes the post_meta or expires the post_meta (I see there is a
_schema_json_timestampfield which I assume is used to expire the_schema_json)Forum: Plugins
In reply to: [Schema] Modify/Extend code not workingThanks for the quick reply.
It doesn’t work on my localhost (MAMP server, Webpack, yarn) which doesn’t do any caching.
I have saved the plugin settings, upgraded from 1.6.x to 1.7, and turning Use Yoast Schema off and on, thinking there might be a conflict.
Oddly enough it does seem to work when I publish the code to my production site. I pushed only
unset( $schema['author'] );code to the production server and the author field does seem suppressed on this article page.This makes it hard to develop and test customizations, but at least it works.
Any thoughts on why it wouldn’t work locally?
- This reply was modified 7 years, 10 months ago by slamorte.
Forum: Plugins
In reply to: [Custom Banners] Random banner shortcodeSolved. Use:
[banner count=1]or[banner group='group-name' count=1]This is because the code sets the default count to -1 which will show all banners.
Now to fix the bad CSS.
- This reply was modified 8 years, 3 months ago by slamorte.
Forum: Developing with WordPress
In reply to: One taxonomy for two meta boxes – sharing taxonomyFYI you are better off making a People post type in addition to your Movie post type.
Then you can use something like Advanced Custom Fields to define a post-to-post relationship. When you assign a Person to a Movie or vice-versa, a relationship such as Actor or Director can be assigned to that link.
Forum: Plugins
In reply to: [SpiderVPlayer] suitable for theme template?Thank you Sona.
I’m not sure what you mean by my player’s ID.
In my post template I’d like to code for a Spider player and pass it variables
$media_type(mp4, youtube, or vimeo) and$media_urlfrom the post. Are there instructions or code samples for how to do this?Ah. I wish you’d sold me on Layouts add-on sooner. I’ve probably got a couple hundred dollars in dev time trying to get
if($alm_item%3 == 1)code to work as expected. It works perfectly on the first run but disables the button.I’ll put in a request to the client to purchase the layouts add-on if you this this solves the problem.
Hi,
Still having an issue with styling.
I’ve put two ALM buttons on my page for you to look at, each pulling a different template (we bought the template folder upgrade).
First ALM
The first one uses a shortcode to call a simple repeater template that does not add one row per three content items, and uses your CSS to override the Foundation floats.
Shortcode
[ajax_load_more theme_repeater="load-more-stories.php" post_type="trnn_story" offset="13" posts_per_page="12" pause="true" scroll="false" destroy_after="36" css_classes="row" button_label="See more stories ≫"]Template:
<div class="medium-4 columns norow"> <?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('block');?></a> <?php } ?> <?php echo the_terms( $post->ID, 'topics', '<div class="labels">',' ','</div>' ) ?> <a href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a> <?php echo wp_trim_words( get_the_excerpt(), 20);?> </div>CSS
.alm-reveal { .medium-4.columns.norow { display: inline-block; float: none; padding-bottom: 20px; vertical-align: top; width: 33%; } }The problem here is that even with your styling addition only two of the medium-4 content items appear per ‘row’, unless I also override Foundations width setting (add “width=33%;” to the CSS). However if I manually set the width I get unwanted results on other screen sizes — it overrules Foundation’s responsiveness. Essentially the position of the second content item shift slightly when changing from float: left to display: inline-block.
Second ALM
The second one uses a shortcode to call the repeater that adds one row per three content items and uses the default Foundation styling.
<?php if($alm_item%3 == 1){echo '<div class="row">';} ?> <div class="medium-4 columns"> <?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('block');?></a> <?php } ?> <?php echo the_terms( $post->ID, 'topics', '<div class="labels">',' ','</div>' ) ?> <a href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a> <?php echo wp_trim_words( get_the_excerpt(), 20);?> </div> <?php if($alm_item%3 == 0){ echo '</div>'; } ?>The styling here is great and fully Foundation. The problem is the Load More button is “done” after the first press. You said “Sometimes when a template is not opened and closed with an HTML element the plugin gets confused,” so I also wrapped the repeater in another div element but it didn’t help.
Website is here and login available on request.