Want to show a section only in the archive page 1 and hide other pages.
Tried to use the conditional logic but seems there’s no choice.
Appreciate if you would have any suggestion.
Want to show a section only in the archive page 1 and hide other pages.
Tried to use the conditional logic but seems there’s no choice.
Appreciate if you would have any suggestion.
Solved by implementing a custom function to retrieve the current URL.
function currenturl(){
global $wp;
$url = home_url( $wp->request );
return $url;
}
Set Conditions to the top content of the page,
Then it won’t display the top content when the url is including page number, such as …/page/2 or …/page/3.