Alternative loop syntax error [closed]

Because you’re using semicolons when you should be using colons after the if and the while 🙂 query_posts( ‘year=2011’ ); if ( have_posts() ): while ( have_posts() ): the_post(); the_title(); endwhile; wp_reset_query(); endif; That works just fine.

How to add homepage Widget?

I’ve had good luck with the Widget Logic plugin. It lets you use template-style logic for each widget. It’s not quite the same as adding a whole new admin page just for conditional widgets (you would need to create and register a new sidebar, etc), but it’s great for the quick-and-dirty ‘get it in there … Read more

PHP $_session is not work in wordpress

Yes, you must use a small change for use session in WordPress. if ( ! session_id() ) session_start(); Better you use a custom function function my_start_session() { @session_cache_limiter(‘private, must-revalidate’); //private_no_expire @session_cache_expire(0); @session_start(); } *Please edit, I write from a mobile

What languages were used to build WordPress? [closed]

WordPress is based on PHP. The dynamic data is stored in a MySQL-Database. For viewing the front- & backend HTML and JavaScript are used. For special operations like the media-upload there are also used technics like Flash and Silverlight. As developer of themes or plugins u can use every programming language for web development.

PHP Call to External Database

I can’t bee too specific answering your question, but you can certainly use a $wpdb instance to access another database: $db = new wpdb(‘user’, ‘password’, ‘dbname’, ‘dbhost’); $results = $db->get_results(‘..query..’);

PHP-Code inside Href-Tag

You’re using a get function, which does not echo by default. Update the PHP portion to the following: <?php echo wp_get_attachment_image($image, ‘category-large-thumb’ ); ?> Also, wp_get_attachment_image() returns a full image object – so I don’t think that’s what your after. It also most seems like you’d just want the_attachment_link: <?php the_attachment_link( $id, $fullsize, $deprecated, $permalink … Read more