sukrut
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Detect User Profile page?i used it, echoed nothing.. just null.. below is the output on profile page source
<meta name="description" content="" />Forum: Fixing WordPress
In reply to: How to Detect User Profile page?Ohh sorry…Below is detailed description for it…
Are you working within the scope of WP? << YES
Are you hooking it to the proper action hook or filter? << I Don’t Know
Are you receiving an error that $pagenow is not defined? << NO
Below is the code i’m playing with
<?php global $pagenow ?> <meta name="description" content="<?php if ( is_single() ) { single_post_title('', true); } else if(!is_home() || !is_front_page()) { // description if page is not home page } else if($pagenow == 'profile.php') { // description is page is a user profile page } else { // description for any other remaining pages. } ?>" />Forum: Fixing WordPress
In reply to: How to Detect User Profile page?and i tried above code but its not working.. 🙁
Forum: Fixing WordPress
In reply to: How to Detect User Profile page?Thanks you for quick reply…
and one more small help needed…how to detect the user name associated with that page?? i mean which users profile is it??
Forum: Fixing WordPress
In reply to: stop my wordpress site from creating multiple sizes of imageswhen i removed functions.php for a while from my template the problem fixed….
so now i have narrowed the problem origin but i dont know where to look for extra images being generated…