How to make a shortcode with a line break in it parse correctly?

There are two workaround options I’ve found: Workaround 1: You can use an indiscriminate number of non-breaking spaces where you would like a line break. So to imitate this: [shortcode paraA1=’789′ paraB1=’987′ paraA2=’890′ paraB2=’098′ paraA3=’901′ paraB3=’109′ ] You can enter: [shortcode paraA1=’789′ paraB1=’987′ paraA2=’890′ paraB2=’098′ paraA3=’901′ paraB3=’109′ ] The WordPress text editor will wrap the … Read more

Custom Fields displaying in single line

Probably not the best solution, but why don’t you try the following: while ( have_posts() ) : the_post(); ?> <div><?php $key_name = get_post_custom_values ($key = ‘country’); echo ‘Country : ‘, $key_name[0]; ?> </div> <div><?php $key_name = get_post_custom_values ($key = ‘status’); echo ‘Status : ‘, $key_name[0]; ?> </div>

How to show the contants in front end same as visual editor with space / linebreak?

When you use get_the_content() to get your content, you need to apply filters to it to output with formatting. apply_filters(‘the_content’, $content); If you don’t need to do anything with the content before outputting it, you can replace your line $content = get_the_content(‘Read more); print $content; with just the_content(); For reference see apply_filters() and get_the_content() in … Read more

How to break line / add to ADMIN menu

<br> tags are not the solution to the problem that you were hoping they would be. Menu labels were never intended to contain arbitrary HTML. HTML does slip through in places, but this appears to be a bug and is inconsistent. For Post Types No. You can’t. $menu[ $ptype_menu_position ] = array( esc_attr( $ptype_obj->labels->menu_name ), … Read more

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