Ahni
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Custom taxonomy pages don’t workHey,
I think I just figured it out using this function to rewrite the custom taxonomy slug:
function add_custom_rewrite_rule() { // First, try to load up the rewrite rules. We do this just in case // the default permalink structure is being used. if( ($current_rules = get_option('rewrite_rules')) ) { // Next, iterate through each custom rule adding a new rule // that replaces 'movies' with 'films' and give it a higher // priority than the existing rule. foreach($current_rules as $key => $val) { if(strpos($key, 'peoples') !== false) { add_rewrite_rule(str_ireplace('peoples', 'indigenous-peoples', $key), $val, 'top'); } // end if } // end foreach } // end if/else // ...and we flush the rules flush_rewrite_rules(); } // end add_custom_rewrite_rule add_action('init', 'add_custom_rewrite_rule');
I tested it on a development version of the site and it worked perfectly.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Custom taxonomy pages don’t workHi @marqas,
Thanks for getting back so quick! I’m not sure what you mean by the base removal, but here’s the function I’m using for the taxonomy:
add_action( 'init', 'create_taxonomies', 0 ); function create_taxonomies() { $args = array( 'hierarchical' => false, 'show_ui' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array( 'slug' => 'indigenous-peoples', 'with_front' => true,), 'public' => true, 'show_ui' => true, 'show_in_nav_menus' =>true,); register_taxonomy( 'peoples', 'post', $args );}
I don’t know my way around code all that well, but I think it has something to do with the fact that I’m rewriting the slug?
Honestly, I’m thinking about following Dutchman’s lead and not updating Wordfence so I can keep Falcon Cache. I’ve also tried several other caching plugins and Falcon Cache outperforms them all. I don’t want to lose it!
Nice work guys; it’s working awesome.
Forum: Plugins
In reply to: [Automatic Internal Links] I have installed it. Then?It’s not working for me either. The callout blocks aren’t showing up anywhere.
Forum: Plugins
In reply to: [Speed Booster Pack ? PageSpeed Optimization Suite] Broken in WP 4.3I’ll confirmed as well. I can’t see any options now https://pasteboard.co/9PQEMO4.jpg
Forum: Plugins
In reply to: [Idea Factory] need help adding field to modal formAny chance I could get a hand with this? I’ve been trying to figure this out for three months; Unfortunately, I’m not a coder so my efforts have been fruitless so far.
Even if I could just wrap the title in a link! Anything will do. Our list of ideas (nominations) is probably going to hit a hundred, and it doesn’t feel right asking everyone to manually add link to each description. Thanks
Forum: Plugins
In reply to: [Quick Paypal Payments] Paypal error because of "un-encrypted button"you just made my day buddy ?? Contacting now
Forum: Plugins
In reply to: [Secondary Title] adding conditional html to manual titleSorry for the delayed response, thaikolja. The second option still sends out empty tags; but the first one works perfectly! Thanks!
Forum: Plugins
In reply to: [WordPress SEO News] Category Exclude doesn't workIt’s happening to me as well. Could really use a fix on this
Forum: Fixing WordPress
In reply to: Can't Type/write on wordpress 3.5I’m having the same problem as @rhmtmulyadi
After disabling all my plugins to no avail, I enabled script debugging in wp-config and–thank you @keesiemeijer–that did the trick. Now I just gotta figure out what the actual problem is!
Hooray, it worked!! I owe you one, big time, for making this plugin and for the awesome support. Thank you!
Yes, it’s definitely a plugin issue. As soon as I disabled it, all my html was preserved as per usual.
I tried removing sanitize_text_field( ) like you suggested, specifically
sanitize_text_field($_POST[‘description’])
Unfortunately, when I saved tried saving a term, it deleted the entire description!
Chris, you are awesome! ?? It worked perfectly with the code you provided.
Thank you so much!
Hey realloc. Sorry for taking so long to back to you. I just installed and activated the same plugins on both sites; but I wasn’t able to reproduce the problem on the test site. I also tried deactivating all plugins expect yours, but I didn’t have any luck there either.
In all, I have 15 plugins installed:
Adminimize
Akismet
Fast Secure Contact Form
FeedWordPress
Google Maps v3 Shortcode
MailPress
Most Shared Posts
Multisite Language Switcher
Simple Local Avatars
Subscribe to Comments Reloaded
Ultimate Taxonomy Manager
VikiSpot
WordPress SEO
WP-DBManager
WP cache blocks