Micah Wood
Forum Replies Created
-
This has been addressed in the latest version
Forum: Plugins
In reply to: [Hide from Search] Plugin updatesHi @tashword
Thanks for using the plugin. I’ve just released an updated version.
Forum: Plugins
In reply to: [Simple Website Redirect] Can I redirect from one subfolder to another?@giddykipper Yes, if both sites are distinct sites in subfolders, then this plugin will let you redirect from one to the other.
Forum: Plugins
In reply to: [Random Post on Refresh] What about using this plygin together with polylang?I created a small, custom plugin that will handle the integration. Go to https://gist.github.com/wpscholar/215695a02a495194d7f7f8da2f46d519 to see the code. Click on the “Download ZIP” button in the top right and install that via upload directly into WordPress. It should automatically make all your shortcodes work for the active language without any changes to the shortcodes themselves.
If it causes you any trouble, please let me know, and I can make the necessary adjustments.Yes. From the documentation:
- taxonomy – Provide a custom taxonomy to pull from. Requires the
termsattribute to be set as well. Example:[random_post_on_refresh taxonomy="post_tag" terms="2,4"] - terms – Provide a term ID or comma-separated list of term IDs to limit the random posts returned. Requires the
taxonomyattribute to be set as well. Example:[random_post_on_refresh taxonomy="post_tag" terms="2,4"]
In the WordPress admin area, under the “Posts” menu item in the left sidebar, click on “Categories”. From there, click the category name (or the edit button) for the category (or categories) you want to include. The URL in the address bar will include something like
/wp-admin/term.php?taxonomy=category&tag_ID=1.In this example,
taxonomyiscategoryand thetag_IDis the term ID, which is1.So your shortcode would look like this:
[random_post_on_refresh taxonomy="category" terms="1"]. If you have multiple categories, just go into each edit screen, grab thetag_IDvalues and list them separated by commas in the shortcode, like this[random_post_on_refresh taxonomy="category" terms="1,7,18"].- This reply was modified 12 months ago by Micah Wood.
The reason is that by default we only pull 100 of the most recent posts. Then, we randomize from that pool. This provides the best optimization.
With version 1.2.3, you can now do something like this:
[random_post_on_refresh orderby="rand"]That will leverage the WordPress query randomization and make the results truly random and not pull from just the most recent posts. Just be aware, that hosts like WP Engine require you to opt-in to the
randoption in WP_Query due to performance reasons.@lightwing – If it is working when logged in, but not when logged out, you have two other caching potentialities you need to look into. First, are you running any caching plugins? If so, you may need to create an exception for the page(s) where you need things to be dynamic. Second, does your web host handle caching on their end? If so, you may need to look at cache exclusions there.
Forum: Plugins
In reply to: [Random Post on Refresh] How to exclude some words@djsava You can use the search attribute to only fetch items containing the word “roofer”.
The
taxonomyattribute will work with any taxonomy, but when combined with thepost_typeyou have to select a post type that utilizes the specific taxonomy.While you can bump the
posts_per_pageto something above 100, that is not recommended for performance reasons. It is better to use the other attributes to customize the query and only select what you want to show.Forum: Plugins
In reply to: [Hide from Search] Pages not being hidden@rlcannon Just posting here as well now that I know what the issue is. The JetPack search feature overrides the plugin, so for my plugin to work, this has to be turned off.
Forum: Plugins
In reply to: [Hide from Search] Pages not being hidden@rlcannon Hmm… that does seem odd. Is it possible to be added to the staging site so I can poke around? If so, you can reach out to me directly via https://wpscholar.com/contact/.
Forum: Plugins
In reply to: [Hide from Search] Pages not being hidden@rlcannon In that case, it may be your theme that is incompatible. Can you try switching to a default WordPress theme like TwentyTwentyThree?
Forum: Plugins
In reply to: [Hide from Search] Pages not being hidden@rlcannon Yes, this is a standard troubleshooting step.
I’d recommend testing in a staging environment if you can. It appears that your site may be hosted on WordPress.com. If that is the case, you can use this guide to test in a staging site: https://wordpress.com/support/how-to-create-a-staging-site/#how-to-create-a-staging-site
Forum: Plugins
In reply to: [Hide from Search] Pages not being hidden@rlcannon I’m seeing the page show as well.
From your description, it should work. However, it is possible that there is a conflict with another plugin you’re using. Have you tried disabling all the other plugins and seeing if it works then?Forum: Plugins
In reply to: [Hide from Search] When plugin active, Search Results always shows 0 results@61pixels Thanks for the report!
Yes, a conflict sounds like the correct conclusion. Since both plugins are likely adjusting MySQL statements, I’m guessing that the ACF Better Search plugin might be clobbering the functionality of my plugin. I’ll investigate further just to make sure there isn’t an issue on my end though.
Forum: Plugins
In reply to: [Hide from Search] Easy way to see all pages/posts that have been hidden?@shackadeli Thanks for the heads up on the breakage. I’ve fixed it now.
- taxonomy – Provide a custom taxonomy to pull from. Requires the