Babak Fakhamzadeh
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST Cache] Cache of paged results not flushing on updating postsThanks.
In my example, ‘post_type’ was a placeholder for my custom post type. So, its value depends on what endpoint is requested. So, your suggested value for $your_rest_base doesn’t actually work as a consequence.
What’s the purpose of this particular test?
In one case, the endpoint I access is like so:
/wp-json/wp/v2/politician?_embed=&_fie…
Where ‘politician’ is a custom post type.
So, do I need to test for all values of $your_rest_base that represent all my custom post types?
Forum: Plugins
In reply to: [WP REST Cache] Cache of paged results not flushing on updating postsThanks.
What’s the $this in that function? Keeping that in generates a fatal error.
If I change the contents of the function to the following, this appears to now work for me:
if ( $object_type !== 'unknown' ) { return $object_type; } if (count($data)) { if (count($data["data"])) { $first_object = $data["data"][0]; $object_type = get_post_type($first_object->id); } } return $object_type;What I don’t understand is this: I just installed WP REST Cache on another site, and there, the REST cache for custom post types are correctly identified, even though I don’t do anything differently, there.
Forum: Plugins
In reply to: [Polylang] ACF fields not workingI did not. I did not mark it as resolved.
Instead, I constructed a workaround, where I achieved a similar result by using a custom taxonomy. Not ideal.
Forum: Plugins
In reply to: [Polylang] ACF fields not workingThanks, but I would not think this applies. I’m not trying to have translations of ACF fields. I just want these ACF fields to work. The ‘simple’ ACF fields work without a problem. But ACF fields that reference post objects do not.
Done.
thanks, and thanks for trying to replicate the problem, but I think you’re not completely understanding my situation.
in my example, both Mr. X and Mr. Y are users, not guest authors. And the incorrect title is showing in the author archives for both users.
so, the titles of the author archive for the user Mr. X, and the title for the author archive for Mr. Y are both “Mr. X, Mr. Y, Author at My Website””.
in both cases, the author archive is requested, so something like /author/mrx and /author/mry.therefore, it’s very clear what author should be named in the title.
and so, this does appear like a bug in Yoast.
Forum: Plugins
In reply to: [WP REST Cache] Cache of paged results not flushing on updating postsAny update on this?
I’m now encountering this same problem on another website. There, too, the post type is custom, and the ‘object type’ in the table of caches is listed as ‘unknown’.
Forum: Plugins
In reply to: [WP REST Cache] Cache of paged results not flushing on updating postsThanks Richard.
This is for a custom post type, so there’s that.
No, I do not strip out data from the endpoints. I do *add* data to the endpoints.
No, the correct post type is not showing in the list of caches. It says ‘unknown’.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Unable to disconnect JetpackThanks.
That link is on wordpress.com, not jetpack.com. Good to know.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Unable to disconnect JetpackThanks. That appears to have worked.
I could not find the option to disconnect my site on jetpack.com. Did I not look in the right places?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Unable to disconnect JetpackThis is for https://eleicoes.apublica.org/2016/
This happened after this website was migrated (this weekend) from the previous URL, which was http://apublica.org/truco2016/
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Disconnect JetpackIn your site’s Jetpack dashboard, near the bottom, there should be an option for managing your connection.
Here’s another workaround: Opera has a built in VPN, which also circumvents the DNS issue.
Thanks.
It’s not just iPhone users. Macs also can use Private Relay.
Obri. Isso parece funcionar.