Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wordpress code error

Featured Replies

I'm following this tutorials to create a html5 based WordPress site. I'm getting an error but I have no idea how to solve this!

 

This is the tutorial: TutorialLink

 

index.php


<?php get_header(); ?>
<div id="main">
<div id="content">
	<h1> News From ABC Agency </h1>
	<?php query_posts('category_name=news&showposts=10'); ?>
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<h1><?php the_title(); ?></h1>
			<h4>Posted on <?php the_time('F jS, Y') ?></h4>
			<p><?php the_content(); ?></p>
			<hr>
		<?php endwhile; else: ?>
		<p><?php _e('No news has been reported at this time'); ?></p>
	<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<div style=" clear: both; "></div>
<?php get_footer(); ?>

 

 

Cheers B)

  • Author

Would help if you told us what the error is...

 

Yea ofcourse :p

 

Parse error: syntax error, unexpected T_STRING in /home/xD/domains/website/public_html/wp-content/themes/realestate/index.php on line 12

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.