Folder outside WordPress
-
Hi,
When i run below code, the page is showing only till “Mobile Version”can you help me with below mobile version code. the folder is outside wordpress directory.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "https://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <title>Test </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script type="text/javascript">window.addEventListener('load',function(){setTimeout(function(){window.scrollTo(0, 0);},0);});</script> </head> <body oncontextmenu="return false;"> <div id="headerwrap"> <div id="header"><h1><a href="/m/"> Mobile Version </a></h1> </div> </div> <?php //load wordpress folder require('../wordpress/wp-blog-header.php'); //load from mobile folder require_once('includes/functions.php'); require_once('includes/api.php'); ?> <div id="contentwrap"> <div id="title"> <h2>Latest Post</h2> </div> <?php $access_key = 1; ?> <?php if ( have_posts() ): while ( have_posts() ): the_post(); ?> <div class="post"> <?php if ( mopr_get_option( 'show_thumbnails' ) && has_post_thumbnail() ) : $thumbnail_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' ); ?> <a>" class="thumbnail"><img src="<?php echo mopr_create_thumbnail( $thumbnail_url[0], 0, 50, 50 ); ?>" /></a> <?php endif; ?> <h2 class="title"><a>" title="<?php the_title(); ?>" accesskey="<?php echo $access_key; $access_key++; ?>"><?php the_title(); ?></a></h2> <p class="subtitle"><?php the_time( get_option( 'date_format' ) ) ?>. <a>#comments"><?php comments_number( '0 Comments', '1 Comment', '% Comments' ); ?></a></p> </div> <?php endwhile; ?> <?php endif; ?> <?php if ( mopr_check_pagination() ) : ?> <div id="pagination"> <div class="next"><?php next_posts_link( 'Next Page ?', 0 ) ?></div> <div class="prev"><?php previous_posts_link( '? Previous Page' ); ?> </div> <div class="clearfix"></div> </div> <?php endif; ?> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Folder outside WordPress’ is closed to new replies.