El Asador Aleman
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] reCaptcha thinks everything is spamHaving the same problem with reCaptcha V3 here:
https://www.leoridano.com/es/ponerse-en-contacto/
https://www.leoridano.com/es/el-pedido/
Best regards
DirkForum: Developing with WordPress
In reply to: Get edit attachment linkThanks bcworkz for your answer which gave me a hint to solve the problem.
It’s actually not a bug but a “clumsy” designed function. The function behind all is get_adjacent_post().
get_previous_post() and get_next_post() call this function in order to get the results. And this function builds up a “WHERE” condition in the SQL statement that keeps with this condition “p.post_status = ‘publish'” pretty much everything outside which is not page or post.
$where .= ” AND ( p.post_status = ‘publish'”;
foreach ( (array) $private_states as $state ) {
if ( current_user_can( $read_private_cap ) ) {
$where .= $wpdb->prepare( ” OR p.post_status = %s”, $state );
} else {
$where .= $wpdb->prepare( ” OR (p.post_author = %d AND p.post_status = %s)”, $user_id, $state );
}
}
$where .= ” )”;
} else {
$where .= ” AND p.post_status = ‘publish'”;
}If you re going to change that to condition to “p.post_status != ‘auto-draft'” it shows you nearly everything. Even custom post types. Obviously you have to rename the function to avoid a redeclaration.
Of course I don’t have the full picture of the code base but probably it would make sense to make an enhancement request to the team.
Best regards and thanks again for the lead.
Forum: Developing with WordPress
In reply to: Get edit attachment linkHello Stan! By attachment I mean the posts, with post_type “attachment”, which are handled in the media library. I am doing a little meta box to offer the functionality to navigate the posts without leaving the edit mask of the posts.
Works fine for the post _types “posts” and “pages” with the coding above but not for the post with post_type “attachment”. So I wanted to know under which circumstances get_edit_post_link() works as well for attachments or if there is another function() in WP that do the same job for attachments and I am not able to find it.
Hope I made it clear this time.
Thanks for your Reply.
Best regards
Forum: Developing with WordPress
In reply to: Access table `wp_termmeta` with WP_queryHello bcworkz! Thanks for your reply.
Will do so. What do you recommend, $wpdb methods or the query filters?
I was wondering what is the purpose of wp_termmeta then? I don’t really get it.
Forum: Plugins
In reply to: [Polylang] Polylang and add_rewrite_ruleHi guys,
I am getting crazy about this stuff I don’t know if possibly Polylang is my problem.
I want WordPress to accept this URL:
https://projekte/patagonia/wordpress/es/busqueda/nube/or/buscar/
instead of this one:
https://projekte/patagonia/wordpress/es/busqueda/?s=nube&searchmethod=or&searchbutton=buscar
and added the following function to the functions.php of my child theme:
function custom_rewrite_rule() {
add_rewrite_rule(‘^busqueda/([^/]*)/([^/]*)/([^/]*)/?’,’index.php?name=busqueda&s=$matches[1]&searchmethod=$matches[2]&searchbutton=$matches[3]’,’top’);
}
add_action(‘init’, ‘custom_rewrite_rule’, 100);The page has two languages, ES and EN. I also saved the permalinks to flush the cache. The language is set from the directory name in pretty permalinks.
Any ideas or suggestions?
Thanks in advance
- This reply was modified 7 years, 10 months ago by El Asador Aleman.
Forum: Plugins
In reply to: [Media Library Assistant] Problem (maybe) after the last polylang upgradeHello!
I did have the same problem. Installed the dev version recently and this seems to solve the problem.
Just to confirm.
Thanks. Best Regards
Forum: Plugins
In reply to: [Polylang] Polylang gives error: "Impossible to add the language."Same problem for me.
Deactivated all plugins => problem remained
Deleted and reinstalled Polylang => problem solvedWith all plugins and themes deactivated.
Forum: Fixing WordPress
In reply to: Trojan on my sites on admin screensFine with me MissKitty9470
Forum: Fixing WordPress
In reply to: Trojan on my sites on admin screensDouble checked it. It started exactly after the last virus definition update.
Let’s see if Bitdefender will offer a solution tomorrow.
If not we have to notify them that there is a problem.
Forum: Fixing WordPress
In reply to: Trojan on my sites on admin screensCan confirm the same issue with Bitdefender on Windows 10.
It’s affecting 4.3.1 and 4.4 installations on different web servers. Online and offline. DE and US versions.
Started today around 8 pm UTC.
On my MAC with AVAST I don’t have problems though.
Makes a Bitdefender problem more likely.
Actually I hate downgrading. I am still not live with my site so I have some more time for waiting. For a live systems it might be a valuable solution though.
Seems that WP 4.1 is about to release these days and OTGS is planning something too. Hope with this new releases will come up a bugfix.
I do have the same problem although I did not get an error message. I simply pick up a date in the shown calendar and the field does not grab it or in other wordes the picked date does not appear in the field.
If you have it as a required field it don’teven let you save the post.
This is an annoying bug.
Forum: Plugins
In reply to: [WP Currency Rate] Shortcode?!Hi! Will you make a version that is 4.0.1 compatible?
Forum: Plugins
In reply to: [WP Cloudy] Refresh data problemHi there!
How are you doing with this problem? Installed your plugin yesterday. Like it, but this problem still exists and honestly makes this great plugin unusable.
Cheers!