bjtalbot
Forum Replies Created
-
Thanks again for your help!
Good news / bad news: I got it sorted out! But only because the site owner decided we don’t need to allow front-end post submissions, so we don’t need the plugin. ??
Thanks very much for your?reply. I narrowed down the problem to the Blocksy theme and/or the Stackable blocks-library plugin. When I deactivate either one of those, I don’t get the error message on the User Submitted Posts form submission. If either or both of those are activated, I get the error. Would this be something that the Blocksy and/or Stackable people need to fix on their end?
Forum: Plugins
In reply to: [Gutenberg Blocks Library & Toolkit - Editor Plus] Search for icon?Thanks! The other block plugins I’ve used allow filtering for icons. It’s hard to find what you want otherwise.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Text of “See more details” linkI did try it, and it does output the WordPress post ID, rather than the Google Calendar ID.
- This reply was modified 7 years, 5 months ago by bjtalbot.
That “xxxxx” is where I want the Google Calendar ID to go, by the way — which is what I was asking about at the end of this thread.
I think I fixed it:
add_filter( 'simcal_default_event_template', 'bjt_simcal_default_event_template' ); function bjt_simcal_default_event_template() { $content = '<strong>' . '[title]' . '</strong>'; $content .= "\n\n"; $content .= '[when]' . "\n"; $content .= '[location]'; $content .= "\n"; $content .= '<div>' . '[description]' . '</div>'; $content .= "\n" . '<a href="https://www.google.com/calendar/render?cid=https://calendar.google.com/calendar/ical/xxxxx%40group.calendar.google.com/public/basic.ics" target="_blank" rel="noopener">SUBCRIBE</a>'; return apply_filters( 'bjt_simcal_default_event_template', $content ); }
Actually I must be missing something, because when I just plunk that code into functions.php, the site breaks (“currently unable to handle this request”).
Awesome, so if I plunk that function into functions.php and edit to suit me, that will get me what I want?
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Text of “See more details” linkThank you. Is there a template tag for the Google Calendar ID?
(I think [calendar-id] is the WordPress ID, right?)
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Google API key – not savedI’m having the exact same problem! Thanks for any help!
Edited to add: I have the same problem on my localhost, but not on my staging site on a real host. API key is saved just fine on the staging site. So is it a problem with saving the API key on localhost?
- This reply was modified 7 years, 9 months ago by bjtalbot.
Thanks for the pointers, Stuart!
Forum: Plugins
In reply to: [WooCommerce] Disable WooCommerce stylesheets on certain page typesThanks for the suggestion! I don’t think it’s quite what I’m looking for. I’d like to target by page type (product archive vs. cart or checkout, e.g.), not by device type.
Forum: Plugins
In reply to: [Max Mega Menu] Different display mode for desktop and mobile?Thank you Tom!
Forum: Plugins
In reply to: [Q2W3 Post Order] Suppress re-ordering in sidebar widget?I tried making a copy of WP_Widget_Recent_Posts in my theme directory’s functions.php, naming it My_Widget_Recent_Posts, and adding ‘q2w3-post-order’ => ‘disable’ to the query that that widget uses:
$r = new WP_Query( apply_filters( 'widget_posts_args', array( 'posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true,'q2w3-post-order' => 'disable' ) ) );
Then I replaced the standard widget in the sidebar with My_Widget_Recent_Posts, but it didn’t work—the widget still displays the posts according to Q2W3’s ordering, not by date.
Any suggestions? Thanks!