nunomira
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Popular Posts] Scheduled Posts appearingThank you so much!!
Going to look at it.
I feel really stupid.
??Highly appreciated.
Forum: Plugins
In reply to: [WordPress Popular Posts] Scheduled Posts appearingThat’s the “recentes” column, not “populares”
??
Which is visible by default.
You need to click “populares”.Forum: Plugins
In reply to: [WordPress Popular Posts] Scheduled Posts appearingHi @hcabrera , thanks for getting back to me!
For example, this post:
https://viralcheck.pt/?post_type=factos&p=2097
(“Os anticoncepcionais engordam?”)
Is listed in the “populares column”I suspect that the client published the post, than changed its status to “scheduled”.
Data caching is enabled for WPP only. No other plugins.
Here’s the debug info:Plugin Configuration Performance Nag: Inactive Log Limit: No Log Views From: Everyone Data Caching: Yes, 1 minute Data Sampling: No External object cache: No WPP_CACHE_VIEWS: No System Info PHP version: 7.3.29-1+0~20210701.86+debian9~1.gbp7ad6eb PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, interbase, intl, json, exif, mongodb, msgpack, mysqli, odbc, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, apc, posix, readline, recode, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, memcached, ionCube Loader, Zend OPcache Database version: 10.1.48-MariaDB-1~stretch InnoDB availability: DEFAULT WordPress version: 5.8 Multisite: No Active plugins: Admin Menu Editor 1.9.10, Advanced Custom Fields 5.9.9, Block Lab 1.6.0, Classic Editor 1.6.2, Custom Post Type UI 1.9.2, MalCare Security - Free Malware Scanner, Protection & Security for WordPress 4.63, Password Protected 2.4, Post Type Switcher 3.2.1, Regenerate Thumbnails Advanced 2.4.0, Thumbnail Upscale 1.1, UpdraftPlus - Backup/Restore 1.16.59, WordPress Importer 0.7, WordPress Popular Posts 5.3.6, Yoast Duplicate Post 4.1.2
Yes, I can see your code is only fetching published posts.
- This reply was modified 3 years, 6 months ago by nunomira.
hi @angelo_nwl,
Here’s the code:
$query_args = array( 'mode' => 'daily', 'long_events' => true, 'header_format' => $separator1 . $separator2, 'date_format' => 'j F Y', 'format_header' => '', 'format' => $card_event . $separator3, 'format_footer' => '', 'scope' => 'date-future', 'tag' => -914, 'limit' => 0, ); em_events_list_grouped($query_args);
And for date-future I have:
function my_em_scope_conditions($conditions, $args){ if(!empty($args['scope']) && $args['scope'] == 'date-future'){ if(isset($_REQUEST['calendar_day'])) $calendar_date = $_REQUEST['calendar_day']; else $calendar_date = date('Y-m-d'); $conditions['scope'] = " (event_start_date >= CAST('$calendar_date' AS DATE) OR event_end_date >= CAST('$calendar_date' AS DATE))"; } return $conditions; } add_filter('em_events_build_sql_conditions', 'my_em_scope_conditions', 1, 2); function my_em_scopes($scopes){ $my_scopes = array( 'date-future' => 'Future from date' ); return $scopes + $my_scopes; } add_filter('em_get_scopes','my_em_scopes', 1, 1);
Thanks
It’s possible.
That’s what I did.
I collect other information from the user.
In my case it’s related to an event.
The field appears in the dashboard and on the template page I created.
happykids.pt/sugerir-evento/In the PHP file, the template.
Maybe
[event_form]
As I can see it in the shortcodes page:
https://wp-events-plugin.com/documentation/shortcodes/For example I don’t see the
[fullcalendar]
shortcode you mentioned.How are you inserting the form in your page?
In my custom template.
Hi,
No. Like I said it’s the free version.
Didn’t do anything else.
The new fields just appear in the form.And I call the form with
<?php echo em_event_form(); ?>
Hi, yes, that’s good.
When I added those attributes, the corresponding fields appeared in my form.
Didn’t have to do anything else.Hola Juan,
When you enable event attributes and save, the box appears:
Make sure you save:
The attribute’s box appears below
Enable location attributes?
and
Enable event custom fields?and after clicking “Save changes (All)”.
Forum: Plugins
In reply to: [Recently] Function to add directly to templateThanks for your answer, and for all your work!
I’ll go with WP’s wp_get_recent_posts() function or a custom query.
Appreciated!Forum: Plugins
In reply to: [Insert Pages] WP_Block_Type_Registry::register was called incorrectly??
Forum: Plugins
In reply to: [WooCommerce] Import Historical DataDisabling almost all the plugins solved the problem and I was able to import the data correctly.