• Hi Team,

    I have developed a separate WordPress code (outside of WordPress) using the wp-load.php file. The purpose was the multi-site. Now I want to server AMP pages (as this plugin installed on main WordPress website) directly. Is there any pre defined function exist over there.

    My code is like below:

    define( 'WP_HOME', 'https://www.example.com/pqr/blog/' );
    require($_SERVER['DOCUMENT_ROOT'].'/cblog/wp-load.php');
    global $wp_query;
    $args = array(
    	'name' => $page_url,
    	'post_type'      => 'post',	
    );
    query_posts( $args );
    
    <?php global $redux_builder_amp;  ?>
    <html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
  • The topic ‘use the plugin in wp-load.php’ is closed to new replies.