Moving wordpress site from one machine into another

The most common problem comes from changing the URL of your site. WordPress (and plugins like Revolution Slider) stores some data as serialized strings. A portion of that would look like s:18:”http://example.com” – an 18 character string. If your site changes to exampletwo.com, it would have to be updated to s:21″http://exampletwo.com“. If you don’t update … Read more

Do not want to display random category. Want to exclude a few or make post show only the category I want [closed]

You can use this code in your functions.php to hide the TopBar category. function the_category_filter($thelist,$separator=” “) { if(!defined(‘WP_ADMIN’)) { //list the category names to exclude $exclude = array(‘TopBar’); $cats = explode($separator,$thelist); $newlist = array(); foreach($cats as $cat) { $catname = trim(strip_tags($cat)); if(!in_array($catname,$exclude)) $newlist[] = $cat; } return implode($separator,$newlist); } else return $thelist; } add_filter(‘the_category’,’the_category_filter’,10,2);

Show multiple option in URL with Redux framework in front end

try to use this: function tes_sidebar() { global $redux_demo; $sidebar =& $redux_demo[‘sidebar_position’] ) ? $redux_demo[‘sidebar_position’] : ‘right’; switch ( $sidebar ) { case ‘left’: get_template_part( ‘sidebar’,’left’ ); break; case ‘disable’: get_template_part( ” ); break; default: get_template_part( ‘sidebar’,’right’ ); break; } } call with this function: tes_sidebar();

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