jan rodenburg
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Chaplin] jquery toggle submenuno need for jquery.
you can just do it in css:li.current_page_parent ul.sub-menu {
opacity: 1;
transform: translateY( 0 );
right: -2rem;
}Forum: Plugins
In reply to: [Yoast Duplicate Post] post-format not copiedhi, i did solve this. i made some extra functions.
the copy is on purpose different then original.
first, the moment at which the filter function is called is important.
the calls:add_action( ‘dp_duplicate_post’, ‘my_plugin_copy_post’, 2);
add_action(‘dp_duplicate_post’, ‘my_duplicate_post_copy_post_taxonomies_add_cat’, 50, 20); // very late momentthe functions:
function my_plugin_copy_post($new_post_id){
// set post format, the plugin ‘forgets’ to copy post-format
set_post_format ( $new_post_id, ‘video’);
// set post type
set_post_type ( $new_post_id, ‘datastick’); // from type is x to type is datastick
return;
}function my_duplicate_post_copy_post_taxonomies_add_cat($new_post_id){
// set extra cat
$idObj = get_category_by_slug( ‘datastick’ );
$id1 = $idObj->term_id;
$cat_array = array( $id1 );
$append=true;
$test = wp_set_post_categories( $new_post_id, $cat_array, $append ); // cat set,overwrite = append
return;
}best, jan
Forum: Plugins
In reply to: [Yoast Duplicate Post] post-format not copiedThanks lopo, i am sue it is unchecked.
In my setup i have extended ACF functionality and several post-types. In here is something that overrides ‘duplicate post’ functionality. I will investigate, and cannot formulate a concrete question. best, janForum: Plugins
In reply to: [Yoast Duplicate Post] post-format not copiedextra info: i did check this: https://www.ads-software.com/support/topic/duplicate-posts-update-and-certain-cpts/ and it is correct in my recent version.
So post-types all works fine. but post-formats is not copied.
Further: this is a fine plugin.
best, janForum: Plugins
In reply to: [Post Notification by Email] Malformed Email HeaderThis should work:
change
wp_mail( ”, $subject_post, $body_post, $headers );
to
wp_mail( ‘[email protected]’, $subject_post, $body_post, $headers );two times, in line 460 and 531, in file: notify-users-e-mail.php
Forum: Plugins
In reply to: [Post Notification by Email] Malformed Email Headerexact same situation here. major flaw! Has this been fixed ?
Forum: Plugins
In reply to: [Media from FTP] Recursive search into subdirectories?hi,
i have a similar case.
My custom wp creates subdirs in the uploads folder. but this is not standard month/ year wordpress, but custom.
i have unchecked: Organize my uploads into month- and year-based folders.
Can the plugin recurse into my subdirs?thanks, jan
Forum: Plugins
In reply to: [Post Meta Searcher] Multiple words search processthanks for this, helped me!
Just a note: typo: in your code is ) that should be }
cheers, JanForum: Plugins
In reply to: [Post Notification by Email] Emails are not sent on WP Version 4.2.2i have same config and the send emails does work!
my config is:
– wp 4.2.2 and buddypress
– buddypress
– local on xampp