SpidermanPuddin
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Custom Feed add_feed() with VariablePerfect! Thank you!
Forum: Developing with WordPress
In reply to: Custom Page Rewrite RulesFound the solution. The Rewrite Rule was correct way to go, but also needed to 1) Add the (Unique) Query Variable so WordPress would recognize it 2) Use the variable instead of GET.
add_action( 'init', 'nearme_rewrite_rules'); function nearme_rewrite_rules() { add_rewrite_rule('^near-me/([^/]*)/([^/]*)/?','index.php?page_id=43316&nmregion=$matches[1]&nmcity=$matches[2]','top'); } add_filter('query_vars', 'nearme_var', 0, 1); function nearme_var($vars){ $vars[] = 'nmregion'; $vars[] = 'nmcity'; return $vars; } $region = get_query_var('nmregion'); $city = get_query_var('nmcity');
Forum: Developing with WordPress
In reply to: Custom Page Rewrite RulesI was able to find this code but it’s still not working even after flushing the permalinks.
//* Add Rewrite Rule add_action('init', 'sym_nearme_rewrite_rule', 10, 0); function sym_nearme_rewrite_rule() { add_rewrite_rule('^near-me/([^/]*)/([^/]*)/?','index.php?page_id=4331®ion=$matches[1]&city=$matches[2]','top'); }
Forum: Developing with WordPress
In reply to: Custom Page Rewrite RulesThe slug is important. What’s the alternative?
Forum: Plugins
In reply to: [Seriously Simple Podcasting] WP Engine nginx RuleAwesome! Thanks!
Forum: Fixing WordPress
In reply to: Set Featured Image Not WorkingOkay, so it appears to be the theme. What could be causing this?
Forum: Fixing WordPress
In reply to: Slow Admin SectionThe front in is incredibly fast on all browsers (When not logged in).
Different Browsers didn’t make a difference for admin performance.
Theme site is coded into the theme (faster than plugin). Can’t change theme. Also using Genesis.
It looks like another site on the same server had some server errors. I fixed it. We’ll see if it continues.
Forum: Fixing WordPress
In reply to: Slow Admin SectionTried it. Maximum of 11 plugins. They’re relatively lightweight (or essential). Turning them off didn’t make a different.
Forum: Hacks
In reply to: Set Custom Query PaginationI’m using Yoast’s WordPress SEO which adds in the “next” for the archive page inside the meta:
<link rel="next" href="https://gunshowtrader.com/gunshows/florida/page/2/" />
I need to remove this by passing along the pageperpost query.
Forum: Plugins
In reply to: [Yoast SEO] "Always Include" in Sitemap not workingStill not working as it implies it should.
Is there a way to set the Taxonomy Default to not include? Besides excluding it completely from the sitemap?
Forum: Plugins
In reply to: [Async JS and CSS] Async JS and CSS except WP Admin ToolbarThanks! I had actually gotten it to work with these Exceptions:
.min.css admin-bar
Forum: Fixing WordPress
In reply to: Subscribers are Posting DraftsDefault user role is set to “Subscriber”.
And no, that’s not the site I’m working on. I’ve updated the link and it’s this:
https://gunshowtrader.com/Plugins:
Ad Manager
AdPress | Ads Manager
Akismet
Async JS and CSS
Custom Login Logo
Disable New User Notifications
Duplicate Post
FV Top Level Categories
Genesis eNews Extended
Genesis Latest Tweets
Genesis Simple Edits
Google Analytics Dashboard
Google Analytics for WordPress
Gravity Forms
Jetpack by WordPress.com
kk Star Ratings
Manual Control for Jetpack
MediaElement.js – HTML5 Audio and Video
P3 (Plugin Performance Profiler)
Regenerate Thumbnails
Reveal IDs
Simple Social Icons
Tweetbacks
W3 Total Cache
WordPress SEO
WP Minify
WP Smush.it
WP User AvatarForum: Fixing WordPress
In reply to: Subscribers are Posting DraftsThe bots are showing up as registered users. I do want people to register… but subscribers shouldn’t even have access to that.
And none of those roles fits my users.
Is it possible that this plugin is allowing it to happen?
https://www.ads-software.com/plugins/wp-user-avatar/Forum: Hacks
In reply to: Custom Select Query doubles postsUnfortunately, that breaks the MySQL.
Also that wouldn’t help the post query:
$querystr = " SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->postmeta AS date_value ON($wpdb->posts.ID = date_value.post_id AND date_value.meta_key = 'date_value') INNER JOIN $wpdb->term_relationships ON (wp_posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) INNER JOIN $wpdb->terms ON ($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id) WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'custom_post' AND date_value.meta_value >= '" . date('Ymd') . "' AND $wpdb->terms.term_id IN ( $term->term_id ) ORDER BY date_value.meta_value, $wpdb->posts.post_title ";
Forum: Hacks
In reply to: Custom Select Query doubles postsStill no luck on getting this to work right.