post title not changing at post page
You have a few ways to do it if (get_post_type($id) == ‘post’ || get_post_type($id) == ‘page’) If you use the same function more than once its better to create a variable that will hold that value, so like this $type = get_post_type($id); if ($type == ‘post’ || $type == ‘page’) You could also do something … Read more