Football Leagues Community
Get help , share ideas , and help shape the plugin's future
Before posting: Check the Documentation and Knowledge Base — your answer may already be there.
Post tags support. Show posts with linked tags in competition, clubs and players.
Hi,
It's suitable to connect contents to players, clubs, competitions pages. for example, show list of articles with messi tag in messi's page. show list of article with barcelona tag in club page. and ...
Make templates FSE compliant
WP is moving towards Full Site Editing and it would be great if the layout builder could be compliant with these kinds of themes.
I made a single change to the code, and it seems to be enough (although I'm not enough into the code to know if more changes are needed or if it breaks anything else - it looks like it works though).
In the default plugin
File includes/class-anwpfl-template.php
Around line 150
Replacing the block here
if ( array_product( $template_loading_check ) ) {
if ( apply_filters( 'anwpfl/template/load_default_template', true, $post->post_type, $post ) ) {
// Prepare layout
$layout = get_post_meta( $post->ID, '_anwpfl_tmpl_layout', true );
$layout = empty( $layout ) ? '' : ( '-' . sanitize_key( $layout ) );
$this->get_template_part( 'content-' . str_replace( 'anwp_', '', $post->post_type ), $layout );
} else {
do_action( 'anwpfl/template/load_alt_template', $post->post_type, $post );
}
// Disable default content
return '';
}
With this
if ( array_product( $template_loading_check ) ) {
ob_start();
if ( apply_filters( 'anwpfl/template/load_default_template', true, $post->post_type, $post ) ) {
// Prepare layout
$layout = get_post_meta( $post->ID, '_anwpfl_tmpl_layout', true );
$layout = empty( $layout ) ? '' : ( '-' . sanitize_key( $layout ) );
$this->get_template_part( 'content-' . str_replace( 'anwp_', '', $post->post_type ), $layout );
} else {
do_action( 'anwpfl/template/load_alt_template', $post->post_type, $post );
}
return ob_get_clean();
}
return $content;
}
Thank you in advance ☺️
Fatal error: Uncaught Error: Call to undefined function mb_strpos() in /www/wwwroot/en.1csport.com/wp-content/plugins/football-leagues-by-anwppro/includes/class-anwpfl-assets.php:501 Stack trace: #0 /www/wwwroot/en.1csport.com/wp-includes/class-wp-hook.ph
Fatal error: Uncaught Error: Call to undefined function mb_strpos() in /www/wwwroot/en.1csport.com/wp-content/plugins/football-leagues-by-anwppro/includes/class-anwpfl-assets.php:501 Stack trace: #0 /www/wwwroot/en.1csport.com/wp-includes/class-wp-hook.php(341): AnWPFL_Assets->admin_enqueue_scripts() #1 /www/wwwroot/en.1csport.com/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #2 /www/wwwroot/en.1csport.com/wp-includes/plugin.php(522): WP_Hook->do_action() #3 /www/wwwroot/en.1csport.com/wp-admin/admin-header.php(123): do_action() #4 /www/wwwroot/en.1csport.com/wp-admin/plugins.php(637): require_once('...') #5 {main} thrown in /www/wwwroot/en.1csport.com/wp-content/plugins/football-leagues-by-anwppro/includes/class-anwpfl-assets.php on line 501
Baller League UK data integration
It would be great to cover Baller League UK as it is getting a lot of attention right now and is a fast growing league.
API Import Rounding Case Sensitivity
Hi Andrei, since the retarded folks at API-Football are scraping a new data source, which is basically good but is causing chaos due to their incompetence, is it possible to disable the case sensitivity in the round mapping?
See screenshot: https://prnt.sc/FOHE35Fj9oWY. Because of the lowercase "p," all the rounds are now being imported as new ones.
Cheers
Frank
Hi Andrei. Is there summer sale for anwp pro plugin. For yearly plan
Hi Andrei I want to purchase the anwp pro forever plan. Is there any summer discount sale ?
I need a cheap hosting for anwp pro
Hi, pls can you recommend a cheap hosting platform for anwp pro. Thanks
hay modo de llenar los resultados de los partidos desde el celular?
hay modo de llenar los resultados de los partidos desde el celular?
COMO PUEDO SEPARAR LAS CATEGORIAS DE UN MISMO EQUIPO
COMO PUEDO SEPARAR LAS CATEGORIAS DE UN MISMO EQUIPO
Customer support service by UserEcho