Gary Sands
Forum Replies Created
-
Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid not saving when on Page modeHi @johnstonphilip,
All appears fine again, thank you all very much for your hard work.
Many thanks,
Gary.Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid not saving when on Page modeThanks @mkcardenas,
I’m pleased it’s not just me:) I was struggling to find time to test again…
Like I said, WP5.6 all fine, above that troubles.
If I can be of help just ask,
Gary.Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid not saving when on Page modeDamn, the problem persists, when adding a new post/page grid, and selecting to use ‘page’ a script error is generated,
data.min.js?ver=943087ae96d075f126df689839bb96b9:2 Uncaught (in promise) {code: “rest_invalid_param”, message: “Invalid parameter(s): per_page”, data: {…}}
I hope you can take a look somewhen as this is a great plugin.
I’ve managed to get the plugin working by reverting WordPress back to version v5.6
I’m running genesis 3.3.3Many thanks,
Gary.Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid not saving when on Page modeOh hang on… I just reinstalled WordPress 5.7.1 which seems to have fixed the issue. Should have tried that before..
Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid limitHi, Please pass on my thanks to the devs:)
Q. Did my thread trigger this fix, or were you working on it anyway? Gary.Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid limitHi Luke,
I can see from the changelog that the version from 2 hours ago fixes the issue raised.
Changelog
1.2.1
Fixed: The layouts block is no longer left over in the editor if the modal is closed by the user.
Fixed: The layouts button in the Block Editor header toolbar uses a more reliable javascript event to ensure it is always visible.
Fixed: The Post and Page Grid block now shows all pages selected, instead of cutting it off at the number of posts set to show.
New: Added a “Leave a review” button to the settings page.Gary.
Forum: Plugins
In reply to: [Genesis Blocks] Post and Page Grid limitHi Luke, so I was using pages in the post/page grid. I chose 9 pages. But on the front-end ouput I only saw 6 (the setting in blog posts to show). Posts works fine, Pages are where I had the issue. Try selecting some pages (more than your blog posts to show setting.)
I’m using a lightly customised sample theme from Studiopress. But I’ll try on a different theme tomorrow.
Many thanks,
Gary.Forum: Plugins
In reply to: [Book a Place] Single order, multiple schemes.Hi,
Yes this is for the admin of the website. If an order contains booked places from more than one scheme, only the first scheme is mentioned in the order,from admin-orders-view.php
$scheme = $this->get_scheme_by_place_id($place_ids[0]);I also need to get this into the email template, as I think at present it will also only mention a single scheme?
Make sense?
Gary.Forum: Plugins
In reply to: [Book a Place] Single order, multiple schemes.I’ve hacked the admin-orders-view.php file with this
<?php foreach ($place_ids as $value) { $scheme = $this->get_scheme_by_place_id($value); echo '<tr valign="top"><th scope="row">'.$scheme->name.'</th>'; $place_name = $places[ $value ]['place_name']; $place_price = $places[ $value ]['place_price']; echo '<td>'.$place_name.' : ' .$place_price.'</td></tr>'; } ?>which gets me a list of “schemes” v “places” on a single order.
Forum: Plugins
In reply to: [Book a Place] How to cancel orderThanks so much, I didn’t even think to look at the scheme, Doh!
Very impressive plugin, I wish you every success with it, and will post a review/link on my website once the job is completed.Gary.
Forum: Plugins
In reply to: [Co-Authors Plus] Guest author "about" info not displayedYou’ll have to loop through the multiple authors. This works, but there’s no formatting, but might help you get the right variables in the right places.
<?php if ( function_exists( 'coauthors_posts_links' ) ) { ?> <!-- if the plugin is installed we'll deal with it here --> <?php if ( 1 == count( get_coauthors( get_the_id() ) ) ): ?> <!--// If there's only one author this bit will handle it --> <?php the_author_meta( 'display_name' ); ?><br /> <?php the_author_meta( 'user_email' ); ?><br /> <?php the_author_meta( 'description' ); ?><br /> <?php else: ?> <!--// Multiple authors, so loop through them --> <?php $coauthors = get_coauthors(); ?> <?php foreach( $coauthors as $coauthor ) : ?> <?php echo $coauthor->display_name;?><br /> <?php echo $coauthor->user_email;?><br /> <?php echo $coauthor->description;?><br /><br /> <?php endforeach; ?> <?php endif; ?> <?php } else { ?> <!-- plugin not installed so fall back to standard wordpress --> <?php the_author() ?> <?php } ?>So it checks if the plugin is installed, then counts the number of authors (id’s) associated with this post. If there’s one then the next few lines are executed. More than one author then it loops through each one. Finally if the plugin isn’t installed it just goes on to the usual wordpress stuff.
Sorry about the formatting, been a long day.