nowton
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Type Manager] how to filter on datefieldMetavalues for that look like dd/mm/yyyy. So setting the format in CCTM _after creating the field does not alter the format in the database (!). Not sure what to think of that, although I am happy I found something. Can I just alter the format in the database, or are there other measures involved?
Forum: Plugins
In reply to: [Custom Content Type Manager] how to filter on datefieldSo you share my assumption that the dates may not be stored in the proper format? Or is there a way to tell by looking at the database contents?
Forum: Plugins
In reply to: [Custom Content Type Manager] how to filter on datefieldSlight adaptation of my code, by querying researchers that started this year
$args['startdate']['starts_with'] = '2014-';and debug enabled gives me this:
Summarize Posts
Errors
There were no errors.
WarningsSearch parameters ignored: search_term and search_columns must be set.
Notices
Filtering on direct column/value: startdate: starts_with 2014-
Execution Time
0.00 seconds
Argumentspost_type: Array (visiting-researcher)
startdate: 2013-
order: ASCFor more information on how to use this function, see the documentation for the GetPostsQuery::get_posts() function.
Raw Database QueriesSELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta ON wp_posts.ID=wp_postmeta.post_id WHERE ( 1 AND (wp_postmeta.meta_key = 'startdate' AND wp_postmeta.meta_value LIKE '2014-%') AND wp_posts.post_type NOT IN ('revision','nav_menu_item','tribe_venue','tribe_organizer','sd2_custom_slide','slidedeck2') AND wp_posts.post_type IN ('visiting-researcher') AND wp_posts.post_status IN ('publish','inherit') ) GROUP BY wp_posts.ID ORDER BY wp_posts.ID ASC
Comparable Shortcode
[summarize-posts post_type="visiting-researcher" startdate="2013-" order="ASC"]
ResultsArray ( )I think I have an issue with the way dates are stored. Please advise, thanks.
Forum: Plugins
In reply to: [Custom Content Type Manager] how to filter on datefieldIt was stored as the default, now I changed it to MySQL. However on building a query and adding a datefield to filter on, the result does not filter. Any insights? Mind you I’m using a Custom Datefield, not the regular post_date.
<?php $today = date('Y-m-d'); /* yyyy-mm-dd */ //echo $today; $Q = new GetPostsQuery(); $args = array(); $args['post_type'] = 'visiting-researcher'; $args['enddate']['<'] = $today; $args['order'] = 'ASC'; $results = $Q->get_posts($args); foreach ($results as $r): ?> <article> <h1><? print $r['post_title']; ?></h1> <span class="function"><? print $r['bio']; ?></span> <p class="date"><? print $r['startdate']; ?> – <? print $r['enddate']; ?></p> <? boilerplate_posted_in(); ?> <? the_content(); ?> </article> <? endforeach; ?>So, its by design, from https://yoast.com/major-update-wordpress-seo-1-5/
The option to change the category rewrite (removing /category/ from category URLs), has been deprecated. If you have it enabled when you upgrade, itβll still show, but otherwise you wonβt see it anymore. We will be removing this feature entirely as the SEO benefits are now very small to non-existent and it causes numerous bugs with other plugins.
Same issue here, apparently the setting to suppress category was left out of the software without providing for a fallback mechanism. Now, off to fix 40+ sites. How could this happen?
Fixed. I suspect a triggerhappy client. And confusion, as searchbox settings are also configured on the third tab.
It solved itself, according to the client. Brrr.
Will try the dev-branch on local development. For production I resorted to actually building an archive for the custom post type. Thanks.
Forum: Plugins
In reply to: [DsgnWrks Importer for Instagram] Auto import never worksSame here, though not on Zeus platform.
In the admin.
Thanks Everett, looks useful. We’ll just recommend a post type that’s ‘in the lead’ to the client, and work from there.
There are several alternatives, but so far I had good experience with Eazyest Gallery and WP’s built-in Media Manager (for smallish collections).
Forum: Plugins
In reply to: [Simple Download Monitor] File cannot be downloadedSure thing, best of luck with that π
Forum: Plugins
In reply to: [Eazyest Gallery] MCE button in the works?Thanks, solved it by using this workaround.