Blog template PHP [closed]

This may be what your looking for: ` <div class=”blog-post”> <?php static $count = 0; if ($count == “4”) { break; } else { ?> <h2><a href=”https://wordpress.stackexchange.com/questions/62131/<?php the_permalink() ?>”><?php the_title(); ?></a></h2> <ul class=”meta”> <li><?php the_time(get_option(‘date_format’)); ?></li> <li>| </li> <li><span>Posted By</span> <?php the_author_posts_link(); ?></li> <li>| </li> <li><a href=”#”><?php comments_number(‘No comments yet’,’1 comment’,’% comments’)?></a></li> </ul><!–end of meta–> … Read more

Move Index to a page

When changing the setting to make the front page a static page, you will have assigned the blog posts to another page. If you name that page ‘blog’ you can access your latest posts at yourwebsite.com/blog No extra tinkering required 🙂

Any way to insert text on page from a query results?

Ok, but I was afraid it’s not really a good solution. Works, though. First, I rewrote the query in order to get pretty permalinks: /*Añadido: Reescribir URL query: “?pa_dispositivo=nombre&pa_marca=nombre”*/ function custom_rewrite( $wp_rewrite ) { $feed_rules = array( ‘tipo/(.+)/marca/(.+)’ => ‘index.php?pa_dispositivo=’. $wp_rewrite->preg_index(1).’&pa_marca=”. $wp_rewrite->preg_index(2) //”(.+)’ => ‘index.php?pa_marca=”. $wp_rewrite->preg_index(1) //”(.+)’ => ‘index.php?pa_dispositivo=’. $wp_rewrite->preg_index(1) ); $wp_rewrite->rules = $feed_rules + … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)