ctrlaltdelete
Forum Replies Created
-
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Scalability issueshmm now i’m thinking on getting a cheap VPS to offload search with elastic search.
Thanks for the suggestion. Not sure if i’ll manage cos seems very complicated.The other monster queries are from “beautiful taxonomy filters”..i have no idea how big sites do it. Certainly not with that plugin.
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Scalability issuesIt is above 0.1 secs about 200 times a day.
I guess my SQL is just too slow to INSERT. It’s probably also overloaded.
I think i need a bigger server, just look at queries before i throw $ at it.Forum: Plugins
In reply to: [Related Posts by Taxonomy] Scalability issuesHello thanks for the info. I added:
add_filter( 'related_posts_by_taxonomy_id_query', '__return_true' );
Everything seems to work so i’ll use it.I have these queries that aren’t very fast, does the above filter helps with that or it’s something else?
# Query_time: 0.426876 Lock_time: 0.000090 Rows_sent: 0 Rows_examined: 0 SET timestamp=1548164968; INSERT INTO 'wp_postmeta' ('post_id', 'meta_key', 'meta_value') VALUES (134484, '_rpbt_related_posts:6375249561307eaaeef25731acbb4f17', 'a:2:{s:3:\"ids\";a:8:{i:134931;s:1:\"3\";i:134479;s:1:\"3\";i:123545;s:1:\"3\";i:137687;s:1:\"2\";i:137220;s:1:\"2\";i:137179;s:1:\"2\";i:136913;s:1:\"2\";i:136687;s:1:\"2\";}s:4:\"args\";a:3:{s:7:\"post_id\";i:134484;s:10:\"taxonomies\";a:2:{i:0;s:5:\"genre\";i:1;s:9:\"publisher\";}s:13:\"related_terms\";a:3:{i:0;i:4;i:1;i:55;i:2;i:27;}}}');- This reply was modified 7 years, 4 months ago by ctrlaltdelete.
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Scalability issuesPerfect thanks i’ll implement it!
Forum: Plugins
In reply to: [Custom Post Type UI] Feature requestsCool, won’t lie i thought about just using code and ditching the plugin but i won’t cos i’m lazy and you are quick and nice to people. Keep it up!
Forum: Plugins
In reply to: [Custom Post Type UI] Feature requestsOh thanks guys, and can i also check for Admin first so only the admin can add terms too? Would it be alright?
Forum: Plugins
In reply to: [Custom Post Type UI] Feature requestsI don’t know if this have been brought up before or if it’s already possible.
I need to remove the “add new” option entirely from custom taxonomies.
Like explained here: https://whoischris.com/remove-add-new-category-custom-taxonomy-link-wordpress/How can i do it with this plugin?
Forum: Plugins
In reply to: [Related Posts by Taxonomy] format=”thumbnails” conflicting with something ?Amazing, i see. It’s my previous related post plugin. Close this before i embarrass myself even more.
Forum: Plugins
In reply to: [Related Posts by Taxonomy] format=”thumbnails” conflicting with something ?The format is solved i think.
I got a slow query from the plugin that doesn’t go away even with caching enabled:
time varies from 0.05~0.1
get_crp_posts_id()
SELECT DISTINCT wp_posts.ID FROM wp_posts WHERE 1=1 AND MATCH (post_title,post_content) AGAINST ('Shin Megami tensei if...') AND wp_posts.post_date < '2018-10-25 19:51:51' AND wp_posts.post_date >= '2015-10-26 19:51:51' AND wp_posts.post_status = 'publish' AND wp_posts.ID != 115618 AND wp_posts.post_type IN ('post') LIMIT 0, 6I want to mention that my post_content is EMPTY i only use custom fields no content.
I also don’t use the post type ‘post’ and dates aren’t a factor, all posts are equally relevant. I don’t understand what this query is doing but can i speed it up or get rid of it?Forum: Plugins
In reply to: [Related Posts by Taxonomy] format=”thumbnails” conflicting with something ?Perfect, that solves it. I can tweak to my needs now, no more light box.
I use this for caching:
add_filter( 'related_posts_by_taxonomy_cache', '__return_true' );Forum: Plugins
In reply to: [Related Posts by Taxonomy] format=”thumbnails” conflicting with something ?Hello i am using a child theme.
With that function they display one under the other (instead of side by side) but still show a lightbox when clicked.Is there a way for me to make my own html from scratch? I only need post titles, permalink and thumbnail url. I’d like to do the rest myself if possible.
But i’m scared to lose the plugin cache which is a must else the query isn’t fast enough.
Yes that works, i know i should have known it but maybe a reminder on the description or FAQ i swear i read them and there was no mention of it, or maybe i didn’t see it.
Forum: Plugins
In reply to: [Beautiful taxonomy filters] it’s just not working properly as it did beforeHi, im glad you are back!
I’ve tried to go back to 2.3.1 but query monitor says “Ajax deprecated” and it won’t work properly any more either, i think WordPress updated and made it obsolete.
So we are stuck without this imo essential feature because: why would you want to have people wasting time choosing combinations that have 0 results?Forum: Plugins
In reply to: [Contextual Related Posts] Titles Filter?My function wouldn’t work unless you also have my database.
Basically i want to modify the post titles that show up on related posts.
How could i do that? Say add the letter “a” at the end of all related post titles.
If you could show me how to do that i can modify it for my specific case.
Any help appreciated.
Forum: Plugins
In reply to: [Contextual Related Posts] Titles Filter?Hi could you help me a bit i don’t think i understand how to do this properly.
So i have a function that adds languages (which is a custom tax) into the titles of the post. I use it like this to apply it yoast seo breadcrumb titles:
add_filter( ‘wp_seo_get_bc_title’, ‘add_langs’, 10, 2 );
OR directly on the theme like so:
add_langs($title)Now i want to apply this function to the titles on the related posts plugin. So i tried:
add_filter( ‘crp_title’, ‘add_langs’, 10, 2 );
Cleared the related posts cache but it didn’t work.Is it possible for me to do this somehow?
- This reply was modified 7 years, 10 months ago by ctrlaltdelete.