• Hi,

    I would like to know why I cannot get WordPresses visual editor to work? This is the code that I use:

    i`f (have_posts()) :
    if ( in_category( ‘categoryName’ ))

    while (have_posts()) : the_post();

    echo ‘<h1>’;
    echo get_the_title();
    echo ‘</h1>’;
    echo ‘<p>’;
    echo get_the_content();
    echo ‘</p>’;

    endwhile;
    endif; `

    and if I mark some text part in my editor as Bold or Italic is simply ignored. Text stays always the same, formatted only as I defined it under p tag in my CSS. Any idea what am I doing wrong? I’ve created my own theme.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • A) The Visual Editor is for text and images not HTML
    B) Neither the Visual or HTML (default) editors accept PHP.

    Thread Starter ABoooo

    (@aboooo)

    Thank you for your reply, but I think that I wasn’t specific enough. I meant for posts text, not for coding. The code that I’ve posted is only to see how I call post content on a page.

    So, when I create new post and I want some text Bold or Italic I see these changes in editor but not on my page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Visual Editor (WYSIWYG)’ is closed to new replies.