sub.menu’s not working

Your problem seems to be within your .htaccess rewrites. First thing to try: change the permalink structure back to normal (index.php?p=375) and see if the submenus work then. If they do then problem is with permalinks. Sorry, I know this should probably be a comment not an answer, but I don’t have enough points to … Read more

Permalink structure and dedicated comment pages

You can change the permalink setting to /p%post_id%, but this will also set the front property of the WP_Rewrite object to /p, so some URLs will also get this in front (/pauthor for example). You can counter this by changing the $wp_rewrite->front property again: add_action( ‘permalink_structure_changed’, ‘wpse5595_rewrite_front_reset’ ); add_action( ‘init’, ‘wpse5595_rewrite_front_reset’ ); function wpse5595_rewrite_front_reset() { … Read more

return page name in url

To display title of current page you use the_title() template tag. Related and slightly more specific functions are: get_the_title() that returns title without echoing and can retrieve title of another page/post, given its ID as input; the_title_attribute() that returns a little more cleaned up version (safer to use in link titles without breaking markup and … Read more

Post with no tag permalink problem

I don’t think there is an easy way to solve this, because /some-category/some-tag/ will be used as an overview page for all posts in category some-category and with tag some-tag. If an URL like /cocktails/bloody-mary/ comes in for a post with the name bloody-mary, category cocktails and no tags, WordPress can’t split it up correctly … Read more

Block registration by URL referrer?

You can use “register_post” hook that happens just before the user is saved to the database or you can use “register_form” hook and check the referring URL for a match and die();

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)