Custom query vars filters problem with pagination

The problem is the pagination parameter in the URL: <a href=”https://wordpress.stackexchange.com/questions/298648/<?php echo (in_array($marca_term->slug, $marca_arg)) ? esc_url(remove_query_arg(“marca’)) : esc_url(add_query_arg(‘marca’, “$marca_term->slug”)); ?>”> Here we see that the marca term is being added and removed, but the pagination parameter isn’t, but that’s a part of the URL not a parameter Instead, why not use the taxonomy archives and … Read more

Trying to display text in a block in a plugin page

EDIT 2: I come up with this kind of dirty solution, which is a function creating temporary array. It will contains the segment of the string you want to add line breaks to. Then we set it back as a string using implode. function breakLines($str,$line_length=30,$implodechar=”<br>”) { $str_length = strlen($str); $i=0; $o=0; $tmp = array();//temporary array … Read more

Remove conditional tag from header

You need to create a child theme. You can use a plugin to do that, just search for ‘child theme’ on the wordpress plugins search. After that, you need to copy your header.php to the child theme directory. Then, you need to change the code above to the following: <?php if ( get_bloginfo( ‘description’ ) … Read more

home.php show blog posts as grid view

It’s a little bit hard to guess, what exactly do you want to achieve (you’ve mentioned something about four posts in a row and then there is number 6 in your for loop), but… If you want to display only 4 posts in your loop, then you can use current_post field of $wp_query, so the … Read more

PHP E_WARNING being shown despite php.ini [closed]

Did you check your wp-config.php file for WP_DEBUG constants? //enable debug define( ‘WP_DEBUG’, true ); //save to file define( ‘WP_DEBUG_LOG’, true ); //show in browser define( ‘WP_DEBUG_DISPLAY’, true); See https://codex.wordpress.org/WP_DEBUG for more details.