jozik
Forum Replies Created
-
sorry, I used single quotes instead of double (that’s why it failed).
You can use:
types_get_field_meta_value( $field, $post_id )$field – Field name (without ‘wpcf-‘ prefix)
Forum: Fixing WordPress
In reply to: 404 if Tag does not existHi, if tag is not found – tag.php is not loaded but instead WP redirects to 404 template.
You can put your code in 404 template but use check
if ( get_query_var('tag') ) {
to show custom message.That will work only for tags. I guess there could be found some better solution that would work for all taxonomies (maybe some plugins can handle that).
Forum: Fixing WordPress
In reply to: How to remove_action for function added in after_setup_themeNot always, if priority is not specified – it’s 10 by default (so 9 will do). If you want something executed before – just specify lower priority, if you want it after – specify higher priority.
To remove some action, you have to specify same priority as used when registered.
http://codex.wordpress.org/Function_Reference/remove_action#ParametersForum: Fixing WordPress
In reply to: Copying post url does not work properlyHi, first I would suggest that you use some of Open Graph plugins (this one worked fine for me: http://wordpress.org/plugins/meta-ographr/). That way you can specify exactly what is title, description and thumbnail of shared content (it will appear right on FB pages).
Second – FB caches exploration results. So if you wanted to share it once – it will be cached (mistake cannot be corrected). BUT if you go to this page: https://developers.facebook.com/tools/debug/
and paste again same URL – results should be refreshed.Hope it helps.
Forum: Fixing WordPress
In reply to: login_head action hook is not placing code in sectionLooks like queued CSS can not be loaded in header (only in footer). To have it in header you’ll have to follow instructions here (direct output):
http://codex.wordpress.org/Customizing_the_Login_Form#Styling_Your_LoginForum: Fixing WordPress
In reply to: How to remove_action for function added in after_setup_themefunction child_function() { remove_action( 'after_setup_theme', 'parent_function'); set_post_thumbnail_size( 150, 150, true); } add_action( 'after_setup_theme', 'child_function', 9 );Parent functions.php is loaded after child theme.
http://codex.wordpress.org/Child_Themes#Using_functions.phpYou have to queue child function before parent function is called and remove it (look at lower priority than default – 10).
Hi everybody,
there is some wrong caching in this API function.
It’s fixed for next release.Temporary fix is to add these arguments:
types_child_posts( $child_post_type, array( 'meta_key' => '_wpcf_belongs_{$parent_post_type}_id', 'meta_value' => $parent_post_id, ));Sorry, I still do not understand, can you please answer:
1. Are custom post types missing?
2. Are custom post types appearing somewhere they should not?
3. You cannot create regular WP posts after upgrade?
4. Have post type and taxonomy settings changed?Thanks
Thanks for your feedback.
Hi all,
so call stopped working after update and custom code did not change?
Can you please paste how you’re using API call and short description where you’re using it?Also, is there something specific regarding children post types (post statuses, are they publicly queryable…)?
We checked possible changes that could provoke it, but could not see anything wrong. On our tests everything worked fine. We’ll see how to reproduce this and see what needs to be fixed.
Hi petriedish,
relationships created are different than native WP relationships between parent and child pages. So WP do not recognize them and URL structure and breadcrumb can not be set as desired. We did not yet schedule any work on custom permalink structure.There is a workaround but I’m not sure if there could be possible issues (so I would not quite recommend it):
1. On custom post edit screen find tab ‘Advanced’
2. check option ‘Use a custom URL format’
3. set it as ‘our-work/adoptions’Thanks for reporting this, it’s a bug and confirmed.
We added it to our fixing queue.Hi Icwakeman,
can you describe simple steps how to re-produce it?As I understood – you’re seeing custom taxonomy form on Page/Post edit screen (instead only on custom post type edit screen), right?
Hi, types_render_field() returns string.
Can you try to echo returned string?<?php echo types_render_field(“project-image”, …