I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?

Upgrade to PHP 5.2 or above The Error Message you see is by WordPress. It’s very misleading what it basically saying is, that you need a PHP version >= 5.2 for that feature to work. Please look into your operating systems documentation or contact technical support on how to update your PHP version. For CentOS, … Read more

How do I display the function the_content in this loop?

try this instead: … global $post; while ($q_query->have_posts()){ $q_query->the_post(); $loophtml .= “<li><span class=”list-question-title”>” . “<a class=”list-answer-link” href=”” . get_permalink() .””>” . get_the_title() . “</a></span>”; $loophtml .= get_the_content(); $loophtml .= “<span class=”list-number-answers”>” . get_comments_number() . ” comentarios</span>&nbsp;&#183;&nbsp<a href=”” . get_permalink() .””>Comentar</a>”; $loophtml .= “</li>”; } wp_reset_query(); …

Use WordPress’ URL rewrite engine

I suggest you don’t try to take out the WP_Rewrite class and re-use it in your application, but look at other frameworks instead. Many MVC frameworks have nice rewrite engines, that not only offer more flexibility in handling incoming URLs, but also generating internal links according to these formats. The WordPress rewrite system is tightly … Read more

How to create another version of my site based on the same database

There are a couple of ways you can achieve what you asked for but the latter is what I’d recommend: Set up a copy of the site in a different directory and using your web host’s control panel map the different domains to the appropriate directories. Use the same DB_NAME/DB_USER/DB_PASSWORD/DB_HOST in the /wp-config.php file for … Read more

wordpress upgrade has broken my permalinks

Here are some steps for you a) Access you site through ftp and remove .htaccess file (possibly backup it) b) Go to admin of your site (wordpress admin) and open permalink settings form c) set the first option to custom and put the value in text box /%category%/%postname% d) save changes and check you front-end … Read more

How to display recent posts on home page with custom HTML

<div id=”posts”> <?php // define query arguments $args = array( ‘posts_per_page’ => 8, // your ‘x’ goes here ‘nopaging’ = true // possibly more arguments here ); // set up new query $tyler_query = new WP_Query( $args ); // loop through found posts while ( $tyler_query->have_posts() ) : $tyler_query->the_post(); echo ‘<section class=”post”>’. ‘<h2><a href=”‘. get_permalink(). … Read more

WordPress: Remove link in the_tags

Use following code: <?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ‘ ‘; } } ?> More details: http://wpeden.com/tipsntuts/getting-list-of-tags-for-a-post/