oudrib
Forum Replies Created
-
Forum: Hacks
In reply to: Run function after save page add_action('save_post','my_function') doesn'tThank you @bcworkz i will try this 🙂
Forum: Hacks
In reply to: Run function after save page add_action('save_post','my_function') doesn'tHi @bcworkz,
thank you for your response, i want to create custom items in the menu (home_url/#about) and list all pages in section with id=about … and wordpress doesn’t do thisForum: Hacks
In reply to: Run function after save page add_action('save_post','my_function') doesn'tHi @spgandhi,
Thank you for your fast response i just started coding with this :
if ( ! function_exists(‘regenerate_menu’)){
function regenerate_menu( $post ) {remove_action(‘edit_post’, ‘regenerate_menu’);
remove_action(‘save_post’, ‘regenerate_menu’);
remove_action(‘publish_post’, ‘regenerate_menu’);
remove_action(‘edit_page_form’, ‘regenerate_menu’);
add_action(‘trash_post’, ‘regenerate_menu’);$list_pages = wp_list_pages($args);
foreach ($list_pages as $key => $value) {
$hash_link = mb_convert_encoding(str_replace(‘ ‘, ”, $post->post_title), ‘EUC-JP’, ‘auto’);
}if( home_url( ‘/#’. $hash_link) == $link->url ){
wp_update_nav_menu_item($themenu->term_id, $link->ID, array(
‘menu-item-title’ => __( get_the_title() ),
‘menu-item-url’ => home_url( ‘/#’. $hash_link ),
‘menu-item-status’ => ‘publish’));
$flag = $key;
}}
add_action(‘edit_post’, ‘regenerate_menu’);
add_action(‘save_post’, ‘regenerate_menu’);
add_action(‘publish_post’, ‘regenerate_menu’);
add_action(‘edit_page_form’, ‘regenerate_menu’);
add_action(‘trash_post’, ‘regenerate_menu’);
}Forum: Plugins
In reply to: [Contact Form 7] change the e-mail distination ?thank you very much for this great support solved
Forum: Plugins
In reply to: [Contact Form 7] change the e-mail distination ?thank you for your reply and this great plugin, my question is how to dynamically set the recipient email address because i want to use CF7 to send to the author of the post thank you so much so your support
Forum: Plugins
In reply to: [WP Job Manager] change dropdown search categories to list with Ajaxone more question please can i add a link inside : “content-single-job_listing.php” to show all jobs from the company ? and thank you very much
Forum: Plugins
In reply to: [WP Job Manager] change dropdown search categories to list with AjaxYes, i create my own ajax query based on the code ajax-filters.js so link click thank you again for this great plugin !!
Forum: Plugins
In reply to: [WP Job Manager] change dropdown search categories to list with Ajaxthanks for your quick reply,
i found that when i use the “wp_list_categories” the
li has the class “cat-item cat-item-[category_id]” so i’ll use this category id to make my ajax query thank you so much for this great plugin and for your support 🙂