URI rewriting: handling one page

You HAVE TO add a rewrite rule to WordPress. That can be done withou touching .htaccess. For example: add_action(‘init’, ‘cyb_rewrite_rule’); function cyb_rewrite_rule() { add_rewrite_rule( ‘toto/([^/]+)/?$’, ‘index.php?pagename=$matches[1]’, ‘top’ ); } If you need access to the second part of the URL as query var, you can do this: add_action(‘init’, ‘cyb_rewrite_rule’); function cyb_rewrite_rule() { add_rewrite_rule( ‘toto/([^/]+)/?$’, ‘index.php?pagename=$matches[1]&secondpart=$matches[2]’, … Read more

custom css in one page

#sidebarSubnav h3 is not letting your Custom CSS to work since it already contains !important for its style properties. Place your code below the above selectors or load the custom css file after the default stylesheet.

Ascending & descending posts on same page with IF statement

You can’t change the DESC to ASC “within the IF statement”. The query has already ran at that point. I don’t really understand what the code is meant to do though. I don’t really see that code ever producing the pattern you describe. Specifically, I don’t understand what the shortcode strings or for or how … Read more

What Role to assign remote site developer?

“Developer” implies that he will have access to the code – in which case he has carte blanche to do whatever he likes. If you actually mean he just has access to the site admin – and I assume this is multisite as you mentioned being a Super Admin – then a site Admin cannot … Read more

Fire an event after Featured Image selection

I figure it out. This may be a bad solution but atleast it works $(‘.inside’).bind(‘DOMNodeInserted DOMNodeDeleted’, function(event) { //WRITE WHAT YOU NEED TO DO} Inside a file abhiScript.js (could be any filename 🙂 ) and wp_enqueue_script( ‘SimpleScript’, get_template_directory_uri() . ‘/assets/js/abiScript.js’,array(‘jquery’)); in function.php

how to goto specific page number including title with permalink

You’re using the wrong index: $GLOBALS[‘create_page_service’] = ‘1281’; # Your code uses ‘create_page_finder’ below $out .= ‘<a href=”‘.get_page_link($GLOBALS[‘create_page_finder’]).'”>’.get_the_title($GLOBALS[‘create_page_finder’]).'</a>’; $GLOBALS[‘create_page_service’] = ‘1281’; # my changed code uses ‘create_page_service’ below $out .= ‘<a href=”‘.get_page_link($GLOBALS[‘create_page_service’]).'”>’.get_the_title($GLOBALS[‘create_page_service’]).'</a>’; As an aside, I would avoid using globals whenever you can.