ryanfurtner
Forum Replies Created
-
This appears to be emails with attachments
I guess the point im making is the ‘feature request’ button in the cleantalk dashboard that you guys have created, links here. It implies that if someone wanted to make a feature request, you would want them to do it here. Because you have a button that you click and this is where it takes you.
You should URL of that button to take users to the ‘create a ticket’ page. That will eliminate the exact problem we are facing here.
Will do! FYI though, if you click ‘feature request’ in the cleantalk dashboard it brings you here.
Forum: Plugins
In reply to: [OoohBoi Steroids for Elementor] New Update ErrorI just wanted to confirm what the others are saying regarding the new update. In chrome console I get:
Uncaught TypeError: Cannot set property 'chrome' of undefined at child.onInit (ooohboi-steroids.js:196) at child.e.each.r.<computed> [as onInit] (frontend-modules.min.js:2) at child.Module.trigger (frontend-modules.min.js:2) at child.e.each.r.<computed> [as trigger] (frontend-modules.min.js:2) at init (frontend-modules.min.js:2) at child.Module (frontend-modules.min.js:2) at child (frontend-modules.min.js:2) at child [as constructor] (frontend-modules.min.js:2) at new child (frontend-modules.min.js:2) at e.exports.addHandler (frontend.min.js:2)
Firefox console I get:
TypeError: $.browser is undefined
The JS errors seem to have broken quite a few things across the site.
I hope that helps in some way! Thanks for the awesome plugin.
Forum: Plugins
In reply to: [OoohBoi Steroids for Elementor] Search cop – Search target posts + termI only want one of the search forms to search a specific category, not all of them. Is there a way to do that?
- This reply was modified 4 years, 4 months ago by ryanfurtner.
<?php $snippetCount = 0; $post_snippets = get_option( 'post_snippets_options' ); foreach ($post_snippets as $snippet ) $snippetCount++; ?>
Thanks David!
https://puu.sh/x0UZb/c0026cab04.png
You’re an absolute legend! Disabling the cache did the trick. Thanks for your help and for creating such a great plugin (without bloat, ads etc too!)
Right okay, I’ll take a look at counting wordpress options dynamically. Is there an option name like post_snippets or something? To put me on the right track?
I’m making a template that I will be using for turnkey website clients so it needs to be dynamic.
I’m assuming you’ll be changing over to a custom post type, which will be awesome!
I appreciate your help so much but I simply cannot get this to work! I added it into my functions.php file. As you have it posted, I couldnt get it to work. I tried modifying it a bit to see if I could make it work but still to no avail, my sitemap.xml file looks the same as before with pages only, no tax terms.
Thanks again for your time Sybre!
Hey there Sybre! I absolutely love your plugin by the way.
I’ll show you what I am using currently to add a whole new sitemap with all the terms from a certain taxonomy ‘state’. Im not sure how to do the same thing with the snippet you’ve provided above.
add_action( "edit_term", "create_sitemap" ); function create_sitemap() { $terms = get_terms( array( 'taxonomy' => 'state', 'hide_empty' => false, ) ); $sitemap .= '<?xml version="1.0" encoding="UTF-8"?>' . '<?xml-stylesheet type="text/xsl" href="' . esc_url( home_url( '/' ) ) . 'sitemap.xsl"?>'; $sitemap .= "\n" . '<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">' . "\n"; foreach( $terms as $term ) { $sitemap .= "\t" . '<url>' . "\n" . "\t\t" . '<loc>' . get_term_link( $term->term_id ) . '</loc>' . "\n\t\t" . '<changefreq>Weekly</changefreq>' . "\n\t\t" . '<priority>0.9</priority>' . "\n\t" . '</url>' . "\n"; } $sitemap .= '</urlset>'; $fp = fopen( ABSPATH . "location-sitemap.xml", 'w' ); fwrite( $fp, $sitemap ); fclose( $fp ); }
I get this: https://puu.sh/wZm4B/fc339cc3dd.png which is doing the trick at the moment! It would be nice to have it all in one sitemap file though.