lagunas
Forum Replies Created
-
The above code and plugin files fixed the issue for me.
Thank You!
Forum: Plugins
In reply to: [Custom Field Suite] Here’s a fix for Add Media in WYSIWYG fieldThank you soooo much for posting this fix!!!!
I hope it can be included in case there is a new version of the plugin.
I saw your message as soon as I posted mine. Tried to reply back but must have messed something up because now I can’t see the original message. Sorry about that!
Thank you very much for the detailed explanation!
Functions are magic indeed! But also, of course, not. I (think I) can understand your reasoning, but I’m afraid I don’t have the skills to debug the code (or even understand the error messages) by myself.Since most of the issues were resolved by your first answer, I’m going to mark this as resolved and find a workaround for the cases in which I want the same taxonomy to be updated from the values of different relationship fields (maybe update them manually from the taxonomy meta box).
Thanks again!
Thank you!!
With that new code I’m getting multiple php errors when trying to update the post (same error line, many times):Warning: Undefined variable $pieces
Warning: Trying to access array offset on value of type nullBoth referring to the line
$field_terms = $pieces[ 'fields' ][ $field_key ][ 'value' ];
Thank you so much!
The new code has solved most of the issues.
All taxonomies are updated from relationship field values, as long as each key-value pair is unique.
I also wanted to update one taxonomy with values from different relationship fields. When I add those to the foreach only the last key-value pair is updated. There is no error message in the PHP error log.Is it possible to update a taxonomy with values from different fields?
I’ve tried with single and multi select relationship fields, and also
pods_api_post_save_pod_item_{podname}
instead ofpods_api_post_save_item
, but nothing has worked so far.Thanks for your answer!
This is my code (in a custom plugin):
register_post_type('series', array( 'labels' => array( 'name' => _x('Series', 'plural', 'customcpt'), 'singular_name' => _x('Series', 'singular', 'customcpt'), ), 'public' => true, 'has_archive' => true, ) );
From your answer I understand that it should work, but the string ‘Series’ is only showing up once.
I’m also using Theme and plugin translation for Polylang (TTfP) extension to translate strings directly from WordPress, since I don’t have experience with .pot files and I only need to translate a couple of words. Maybe the problem is there?
Forum: Fixing WordPress
In reply to: WP_Query giving too many postsI’ve been stuck for some hours trying to figure out a similar issue.
Thank you sooo much for posting your solution!!!Hi, thanks for your answer! By users I meant administrators, sorry for the confusion. They need to have the possibility to add options and translate them from the backend. I would rather use custom fields for other reasons, and I was using this plugin, which is awesome and very lightweight. But now I need Polylang compatibility, so that’s why I’m trying Pods (also awesome, but much more than I actually need). I will explore the alternatives you suggested and see if they work for me.
Thank you!Ok, thanks!
Forum: Plugins
In reply to: [Polylang] Displaying taxonomy name in archive page broken with version 1.8Great news!
Forum: Plugins
In reply to: [Polylang] Displaying taxonomy name in archive page broken with version 1.8The code you provided worked perfectly.
Thank you!!Forum: Plugins
In reply to: [Polylang] Displaying taxonomy name in archive page broken with version 1.8It is a custom taxonomy for a custom post type.
Both the taxonomy and the custom post type are translated.
It was working ok in the previous version (1.7.12).Turns out ngg_pictures table had crashed, nothing to do with the plugin.
Since I’m on a shared hosting, had to contact support and they fixed it.Update:
I found the following in the error log:Error Table ‘./tablename/prefix_ngg_pictures’ is marked as crashed and last (automatic?) repair failed
If I access with phpmyadmin, the table says ‘in use’, and if I try to repair it, I get this error:
Can’t create new tempfile
Operation failedI’m not sure if this error is related to the gallery plugin or if it’s just a coincidence that the broken table is ngg_pictures.
Any ideas?