Ziqurrat
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Sitemap error: url not validResolved
- This reply was modified 5 years, 12 months ago by Ziqurrat.
Forum: Plugins
In reply to: [Yoast SEO] Sitemap error: url not validYou’re right.
It’s a plugin for debugging that I forgot to switch off after maintenance.I’ve deactivated it and now sitemaps are working right in Google.
Thank you very much!
Federica
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Switch from Gutenberg to Page BuilderRelated question: how can I copy the content of the classic editor inside a SiteOrigin Layout block?
In classic editor I can see only shortcodes or HTML, In SiteOrigin block there’s no “code” view where I can paste old content.
Thanks
FedericaHi Jim,
sorry for the delay.
I do not have a test environment so I can not swich off plugins to test for conflicts.
In the meantime, I’ve found a solution using the text editor instead of the visual one. This way the field saves rightly.I’ll have a look to the Health Check plugin, it sounds very promising for sites without a testing version like this one.
Thank you very much
Not using Gutenberg
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Avoid duplicate postHi Andrew, thank you for the reply.
This would be a nice feature to add to the plugin.In the meantime, I’d like to try a workaround.
I’ve added to the functions.php a global var to store the post ids.
I’ve got some custom templates for my loops, so I can save the IDS to exclude inside the global variable and then use it to filter the query by adding the parameter ‘post__not_in’.It works, somehow. But I know that global vars are not a best practice. Have you got any suggestion on how can I make it better?
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Custom loop templateHi alexgso, thanks for your reply.
I’ve managed to make it work but really I can’t say I understand how ??
My query is saved inside $wp_query so I have to use it like this$post_selector_pseudo_query =($wp_query->query_vars); $processed_query = siteorigin_widget_post_selector_process_query( $post_selector_pseudo_query );
Solved, thanks.
ZiquForum: Plugins
In reply to: [The Events Calendar] Problem with Events listing layoutSame here, after the last update the list of events in the admin panel is broken. It’s like the title column has lost its space: the “title” header (th) is missing while the text of the title of the event (td) stays in a one character sized colum.
Forum: Plugins
In reply to: [Popups - WordPress Popup] error class-spu-rules.phpIf I change the code of the link like this
<a href="#" title="Login" class="spu-open-3">login</a>
popup opens but I still get the notice.
Maybe you can update your FAQ (How to open a popup by pressing a link or button ?)
and gist (https://gist.github.com/timersys/d68690a85aed14a02318)Thanks
Federica
Forum: Plugins
In reply to: [The Events Calendar] WP_query with IDS, different resultsHi Shelby,
I’ve tried with a brand new installation of WordPress 4.7.2 with the theme Twenty Seventeen and only the Event Calendar as plugin.
I have only 4 past events in this test.
The query with ‘fields’ => ‘ids’ returns ID 23, 20, 19 WRONG RESULTS
The query without the fields parameter returns ID 9, 19, 20 CORRECT RESULTS<h1>TEST</h1> <?php echo '<h2>Query ids:</h2> '; $pastevents = new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 3, 'eventDisplay' => 'past', 'fields' => 'ids') ); print_r($pastevents); echo '<br/><br/><br/>'; echo '<h2>Query no ids:</h2> '; $debug= new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 3, 'eventDisplay' => 'past') ); print_r($debug); ?>
Federica
- This reply was modified 8 years, 1 month ago by Ziqurrat.
Forum: Plugins
In reply to: [The Events Calendar] WP_query with IDS, different resultsHi Caroline, thanks for the support. I don’t think I have installed something that changes the normal behaviour of the queries but I will try to check .
Federica
Forum: Plugins
In reply to: [The Events Calendar] WP_query with IDS, different resultsAs I said before, I need a query that returns only post-ids.
In the documentation of the function tribe_get_events()
https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
there is no option for returning only the ids. So I switched to the WP_Query.I resolved the problem in this way
$pastevents = new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 3, 'eventDisplay' => 'past') ); $pastevents_ids = wp_list_pluck( $pastevents->posts, 'ID' );
but still I don’t understand why I can’t use the ‘fields’ => ‘ids’.
Thanks
FedericaForum: Plugins
In reply to: [The Events Calendar] Organizer pageThanks, I will look at the provided link for no-profits.
Regards
FedericaForum: Plugins
In reply to: [The Events Calendar] Event list widget – display simultaneous eventsHi,
I’ve somehow managed to make it work. I’m quite new to PHP and WordPress, so I don’t know if this is a good solution. I’ll post it, maybe somene can tell me if I’m doing right
I’ve created a custom list-widget.php under my child-theme.
//Query results as from widget configuration parameters $widgetResults = tribe_get_list_widget_events(); // Check if any event posts are found. if ( $widgetResults ) : //array of 'start-date' of the last N events $testDateArray = array(); foreach ( $widgetResults as $r ) : $testdate= tribe_get_start_date( $r->ID, false, 'Y-m-d' ); array_push($testDateArray, $testdate); endforeach; $dateFilter = array_unique($testDateArray); ?> <ol class="tribe-list-widget"> <?php // Array of the events for each date foreach ( $dateFilter as $df ) : $posts = tribe_get_events( array( 'eventDisplay' => 'custom', 'start_date' => $df.'00:01', 'end_date' => $df.'23:59' ) ); //Print events foreach ( $posts as $post ) : setup_postdata( $post ); ?> <li class="tribe-events-list-widget-events <?php tribe_events_event_classes() ?>"> OUTPTUT FOR EACH EVENT </li> <?php endforeach; endforeach; </ol>
In this way if I set the widget to show 1 upcoming event and there are more than one event in that date I can show all the events.
I hope to hear an expert opinion on this solution.
Federica
Forum: Themes and Templates
In reply to: [Point] all customization lost after updateRestored from backup. No way to fix lost customization but to insert them all again in the new customizer (boooooo!!!)
This is a duplicated question. More about the problems with the update on
https://www.ads-software.com/support/topic/benefits-of-upgrading-to-point-20?replies=14