andrejm
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Undefined $term_id PHP noticeDakujem 😉
For the time being, I’ll just suppress the notice (you are right it only shows on dev environment) and wait for the update.
Thanks again for great support.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Undefined $term_id PHP noticeI tried to disable advanced ads addons until only core advanced ads plugin stayed active – still notice.
I then deactivated all other plugins – notice is there.
It happens both logged in/out.
Also, it seems to happen only on CPT archive pages.
$query just before the line 54 looks like this:
stdClass Object ( [labels] => stdClass Object ( [name] => Téma [singular_name] => Téma [add_new] => Pridať novýú tému [add_new_item] => Pridať novýú tému [edit_item] => Upraviť tému [new_item] => Pridať novú tému [view_item] => Zobraziť tému [search_items] => Hľadať %s [not_found] => Neboli nájdené žiadne témy [not_found_in_trash] => V koši nie sú žiadne témy [parent_item_colon] => [all_items] => Všetky Témy [featured_image] => Prezentačný obrázok [set_featured_image] => Nastaviť prezentačný obrázok [remove_featured_image] => Odstrániť prezentačný obrázok [use_featured_image] => Použiť ako prezentačný obrázok [menu_name] => Témy [name_admin_bar] => Téma ) [description] => [public] => 1 [hierarchical] => [exclude_from_search] => [publicly_queryable] => 1 [show_ui] => 1 [show_in_menu] => 1 [show_in_nav_menus] => 1 [show_in_admin_bar] => 1 [menu_position] => [menu_icon] => dashicons-media-document [capability_type] => post [map_meta_cap] => 1 [register_meta_box_cb] => [taxonomies] => Array ( [0] => category [1] => post_tag ) [has_archive] => 1 [rewrite] => Array ( [slug] => longread [with_front] => [pages] => 1 [feeds] => 1 [ep_mask] => 1 ) [query_var] => longread [can_export] => 1 [delete_with_user] => [_builtin] => [_edit_link] => post.php?post=%d [name] => longread [cap] => stdClass Object ( [edit_post] => edit_post [read_post] => read_post [delete_post] => delete_post [edit_posts] => edit_posts [edit_others_posts] => edit_others_posts [publish_posts] => publish_posts [read_private_posts] => read_private_posts [read] => read [delete_posts] => delete_posts [delete_private_posts] => delete_private_posts [delete_published_posts] => delete_published_posts [delete_others_posts] => delete_others_posts [edit_private_posts] => edit_private_posts [edit_published_posts] => edit_published_posts [create_posts] => edit_posts ) [label] => Téma )What other details would help you investigate this?
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Undefined $term_id PHP noticeOK, I’ll try to provide more info for you to reproduce, thanks for a quick reply!
Forum: Plugins
In reply to: [Loco Translate] mu-plugins translatable?mu-plugins are a good way how to separate functionality when developing a theme while making sure the user will not turn it off… I use it a lot.
Anyway, thanks for your answer, I will be happy to find mu-plugins support in Loco 2.0!
Forum: Plugins
In reply to: [Loco Translate] mu-plugins translatable?Here you go: https://gist.github.com/andrejm/4f3ce34cb27b82046887
The file is located in wp-content/mu-plugins directory