Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anyone having issues submitting posts with code?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #158926
    Rugg
    Participant

    I’m attempting to submit a short post with a few lines of block code for reference. For whatever reason the submission fails to execute. Unfortunately, I had the same issues a few months ago…

    I’ve attempted to share the code snippet as a jsfiddle link, still with no luck.

    Any ideas?

    #158954
    Senff
    Participant

    What errors do you get?

    Here’s some example code and that seems to work fine for me:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.