Skip to main content
added 3 characters in body
Source Link
Maruti Mohanty
  • 2.4k
  • 1
  • 19
  • 21

This is because you are not passing the parameters in the correct way, taxonomy param needs to be passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4,
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

This is because you are not passing the parameters in the correct way, taxonomy param needs to passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4,
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

This is because you are not passing the parameters in the correct way, taxonomy param needs to be passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4,
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

deleted 1 characters in body
Source Link
Rarst
  • 99.9k
  • 10
  • 160
  • 298

This is because you are not passing the parameters in the correct way, taxonomy param needs to passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4'4,
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

This is because you are not passing the parameters in the correct way, taxonomy param needs to passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4',
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

This is because you are not passing the parameters in the correct way, taxonomy param needs to passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4,
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex

Source Link
Maruti Mohanty
  • 2.4k
  • 1
  • 19
  • 21

This is because you are not passing the parameters in the correct way, taxonomy param needs to passed under tax_query. Please replace the $args with the below:--

$args = array(
    'posts_per_page' => 4',
    'tax_query' => array(
        array(
            'taxonomy' => 'tag',
            'field' => 'slug',
            'terms' => 'pp'
        )
    )
);

For more details check the codex