Fatal error with Ultimate Coupon plugin

Both plugins – Premium Coupon Plugin and Ultimate Coupon – declare the poorly named function like_content(). Disable the other plugin before you activate this one. And tell the developer they should prefix their functions.

Help Me “in_category” with echo? [closed]

If you are using in_category correctly, your code modified as per my comment should work. That is… if (in_category($ct_portfoliocatid)) : include (TEMPLATEPATH . ‘/portfolio.php’); else : endif; You don’t need all those messy opening and closing PHP tags so I removed them and I don’t know why you have an else at all. From the … Read more

Static front page displaying twice

Go to Dashboard -> Appearance -> Customize Click on “Theme Options” Now you can see your page sections that the second one is your first page that is repeated. Click on pencil icon at the top left of the unwanted section. Then on the list at the left you can see the name of your … Read more

W3 Total Cache benefits without using plugin? [closed]

Did you already try adding all the mobile user agents to the “Rejected user agents” list in w3tc? I use this list for this purpose (not created by me and certainly not complete but enough for my purpose): iphone ipod ipad aspen incognito webmate android dream cupcake froyo blackberry9500 blackberry9520 blackberry9530 blackberry9550 blackberry9800 webos s8000 … Read more

Creating Features List in WordPress Post

Convert the items in the shortcode into an array, and return a list: add_shortcode( ‘features_list’, ‘shortcode_features_list’ ); function shortcode_features_list( $atts = array(), $content=”” ) { $content = trim( $content ); if ( ” === $content ) return; $items = explode( “\n”, $content ); $items = array_map( ‘trim’, $items ); return ‘<ul class=”features”><li>’ . join( ‘</li><li>’, … Read more

Add segment to URL in htaccess

Go to Settings/Permalinks and add the static string to to the permalink structure: No need to touch the .htaccess. Update To make WordPress sending a hash # for its post permalinks you have to filter pre_post_link to make the structure ‘#%postname%’ and post_link to remove trailing slashes: add_filter( ‘pre_post_link’, function( $permalink ){ return ‘#%postname%’; }); … Read more