jezthomp
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Query Loop] Posts only display in ‘exclude’ search not ‘include’?To eleaborate further this is down to if there are too many posts/pages with specific content it wont show in the list of post choices.
For example..
You have 100 posts, you want to include a post called Hello world, when you search for that if there are more than 10 posts include hello in the rest api call/post content (not the title) then the post title hello world wont be included.
You can confirm this by doing something like this… /wp-json/wp/v2/pages?per_page=10&search=hello world&_locale=user the post you’re after wont show up.
However, if you change it to.. /wp-json/wp/v2/pages?per_page=50&search=hello world&_locale=user
It will appear in 15th or something outside of the top 10.
So the question is can there be a way to only add posts via their title rather than the whole content?
Thank you 🙂- This reply was modified 4 months, 3 weeks ago by jezthomp.
Thank you, i have done that before but i’ll try again and check in a few days.
Forum: Developing with WordPress
In reply to: Loading a default pattern per custom post typeCould you not just do this with another post’s content as well?
Setup a ‘master’ page that you’re happy with, get that page/post id then re-use its content each time you create a new post/page?Anything wrong with this method?
add_filter('default_content', 'cpt_portfolio_default_content', 10, 2);
function cpt_portfolio_default_content($content, $post) {
if ($post->post_type === 'cpt-portfolio') {
// Replace 5055 with the ID of your reusable block or draft page
$pattern_post_id = 12559;
$pattern_post = get_post($pattern_post_id);
if ($pattern_post) {
$content = $pattern_post->post_content;
}
}
return $content;
}This has broken the ability to auto update or even manually update.
How do i permanently remove any remaining files please, I’ve deactivated and deleted the plugin files but it is still not letting me update?
I’m building locally at first on MAMP and unsure whether the client will want an SSL at the final point, does that mean cannot use this plugin until there is an SSL associated?
Looks like it was a server problem as you suggested, they responded with this…
This looks to have been an nginx misconfiguration error – the syntax for setting up a default site is to use an underscore “_” character for the server_name parameter.
I have added the domain to the server_name parameter, with the addition of the “_” to catch all other requests.
Okay thank you, i’ll ask them and get back.
Forum: Plugins
In reply to: [Autoptimize] How to remove type attributes?Can anyone help with how to use the autoptimize_html_after_minify to remove the
typefrom the javascript tag please?Thank you Mark.
How do i know what cookies are used on my site to add to the plugin?
I’ve looked on the web inspector under Storage > Cookies and have the following names…
_ga
_gid
caosLocalGa_gid
caosLocalGaSo i would ‘add new’ the above names?
How do i know if these are persistent, session, or third-party, duration, sensitivity, necessary or non-necessary?
Forum: Plugins
In reply to: [WooCommerce] Whats happened to the image sizes, broken?Sorry, yes that answered the question thank you.
Forum: Plugins
In reply to: [WooCommerce] Whats happened to the image sizes, broken?What about the image size for the thumbnail scroller, they are suddenly massive.
Or is this to be controlled via css moving forward?
Forum: Plugins
In reply to: [Postie] Limit posts to specific @email address?When i do a default setup any email could post a post, i tried my own email and another google email and both submitted to the draft.
I want to limit it to specific email addresses to limit spam almost entirely.
Forum: Plugins
In reply to: [WooCommerce] Change Title of Order to Order Number in My Account page?Works perfectly thank you 🙂
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?Perfect thank you so much 🙂
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?Thank you, thats very kind.
A pastebin of the html here, with the url edited..
Thanks again 🙂