wiwimaster
Forum Replies Created
-
Forum: Plugins
In reply to: [Block Lab] How to use the repeater fieldExcellent – works perfect and I could remove 40 single fields into a repeater with 2 fields.
Forum: Plugins
In reply to: [Block Lab] How to access block variables from almost anywhereI think this is a super-important request, as it opens up a whole new area of use cases. Similar as @darakilicoglu I’d use block content in loops (e.g. a specific text part, a flag in case a certain block has been used,…), and agree with both proposed solution (function returns data as array).
My two cents on block vs. generic post settings, it depends if you place the block somewhere in the text (which would be a block then, e.g. something like a custom FAQ, warning text,…) or always at the same place (e.g. a set of alternative post images, introduction text,…). Actually both use cases make sense to me and lead to a 2nd feature request (I didn’t find it on github but forgive me if that has already been placed), do you plan to add document-wide settings as a feature to blocklab (I’d love to use this for certain meta fields, additional featured images with different aspect ratios, or properties such as “sponsored yes/no” with a custom text next to it.
thanks!
Jansorry for the churn – I found the issue.
Not true, there is another way (had to find it myself):
//Adjust wordpress
add_filter( ‘post_link_category’, ‘remove_child_categories_from_permalinks’ );
function remove_child_categories_from_permalinks( $category ) {
// source: https://wordpress.stackexchange.com/questions/147453/remove-child-category-from-url
while ( $category->parent ) {
$category = get_term( $category->parent, ‘category’ );
}return $category;
}//Adjust Yoast SEO:
add_filter( ‘get_post_metadata’, ‘my_filter_primary_category’, 20, 4 );
function my_filter_primary_category( $check, $object_id, $meta_key, $single ) {
// source: https://github.com/Yoast/wordpress-seo/issues/6184
if ( $meta_key === ‘_yoast_wpseo_primary_category’ ) {
return $single ? false : array();
}return $check;
}Forum: Plugins
In reply to: [Comments - wpDiscuz] schema.org supportThanks. Is this something you plan to do rather long-term (>3 months in the future) => then I would wait to install; or is this something you plan to do before => I’ll keep the installation for now.
Thanks devnihil, great advice to use WP Health, this helped me to find the issue – it is indeed caused by another plugin, WP Ultimate Recipe. Yoast worked fine without the plugin.
thanks
JanForum: Plugins
In reply to: [Amazon Associates Link Builder] Errors in the error.logI have the same issue:
2018-01-02 21:01:37 Error 107.178.196.37 AH01071: Got error ‘PHP message: Error in maxmind_db_manager:get_db:::WP_ERROR: Forbidden\n’
except for the fact that it hits me multiple times per second 🙁
Wordpress 4.9.1, PHP 7, Plugin version 1.5.2.
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Adaptive Images & WP Rocketgood catch. I’ve added the media folder to the ones being watched, and now also the folder “wp-content/cache/adaptive-images” got created. However I’ve called a few pages ith ~400px wide browser, but no images were created in the cache folder, and all of a sudden only empty image frames appear.
would you mind having another look?
thanks
JanForum: Plugins
In reply to: [Adaptive Images for WordPress] Adaptive Images & WP RocketHi Takis
sure – go to http://test.backenmachtgluecklich.de (user/pw “test” each time). The plugin is activated on this test environment.thanks for your help
Jan