Cant get blog name with get_option

You need access to the property of $username to get the name $user = wp_get_current_user(); $username= $user->display_name; Get option method will return the name of the site you have set in setting -> general options $url = get_option( ‘blogname’); If you need home URL then $url = get_option( ‘home’ );

Ajax filter with loadmore button

You could possibly look at doing this the same way that WP Job Manager does: https://github.com/Automattic/WP-Job-Manager/blob/master/assets/js/ajax-filters.js This is done by triggering a handler to make the query defining what “page” the query should run against. I would recommend using that as an example to build off of, as it works with both filters applied and … Read more

Apply function.php filter only if url not has /amp/

What is amp? Is it tag or category or page? You should use standard wordpress functions like is_page() is_category() is_tag(). You can also use $wp->request. It will return the request URI. If the address is “http://example.com/slug1/slug2” it will return slug1/slug2 then use explode() function to split it. <?php $uri = $wp->request; $slugs = explode(“/”,$uri);//variable $slugs … Read more