How can I get is_page(Current_URL)?

Question

Can anyone tell me the correct code for getting category URL + current URL?

I’m trying to get => [categoryURL]/?sortby=asc

I’ve tried different codes, but it didn’t work.

if (is_page('echo esc_url( wp_get_current_url()/?sortby=asc'))
<?php if (is_page(array('/?sortby=asc', '/?sortby=desc'))) { ?>
<?php> $category_link = get_category_link( $category_id ); ?>
<?php if (is_page(array('$category_link/?sortby=asc', '$category_link/?sortby=desc')))
0
gfo95 2 months 2022-09-24T11:46:12-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse