brbrbr
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Travel Blogger] Feature Post won't updateLocate the file lib/functions/admin.php and function exp_save_feature_data
the you will see within the first if statement
isset($_POST['exp_feature_noncename'])
change it to
$_POST['exp_feature_noncename']
Forum: Themes and Templates
In reply to: [Travel Blogger] Feature Post won't updateThis one solved saving the features posts and geo location
with that it solves the google maps shortcode not working ass well.
(the short code was not working since there was never a geo location added to the post)
and since the ‘featured posts’ settings are saved it will show the post as featured. I haven’t found sliders yet
Forum: Themes and Templates
In reply to: [Travel Blogger] Feature Post won't updateit’s in lib/functions/admin.php
remove the isset()
function exp_save_feature_data( $post_id ) { global $post; // Verify if ( !wp_verify_nonce( $_POST['exp_feature_noncename'], plugin_basename(__FILE__) )) { return $post_id; }
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] Rewrite rules not correctThe order is now correct and the page is found properly,
great
I discovered that the issue was also resolved be getting wordpress into the ‘use_verbose_page_rules’ mode.
( The ‘use_verbose_page_rules’ object property will be set to true if the
permalink structure begins with one of the following: ‘%postname%’, ‘%category%’, ‘%tag%’, or ‘%author%’.)then wordpress takes ALL rules into consideration even after a match.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] language in pages permalinkHi,
thanks for the answer and effort,
is there a quick patch possible in your code?
complicated? Sounds more like a mess ?? My plugin uses wp_insert/update_post so would expect the parameters passed to the hook to be the correct one.
the check on the passed parameter is now only on is_object. not on array/int.
well, patching the is_object to is_int works for me, I just have to remember it on updates.
hi,
didn’t mis your remark about the post-handling function. Adding one to the theme is not my prefered option.
I can’t add a filter to the save post because that one would fire for any post. So to be able to alter the content of the post I would need a filter like swt_save_post applied just before the call the wp_inster_post
right,
A filter action on the post en the global meta would help.
to modify the permalink for example to the correct mapped domain
I could set a content filter before the output, however i prefer to have the content trimmed before it’s copied.
old topic but seems to adres my issue.
i would like to trim the post like an excerpt before it’s saved to the tags-blog.
you suggest to use pre_site_option_sitewide_tags_blog but this one fires before the plugin is loaded?