RESOURCES
[insert_php]
$cat = “recursos”;
if (isset($_GET[‘cat’])) {
$cat = $_GET[‘cat’];
}
wp_reset_query();
[/insert_php]
[insert_php]
if (get_query_var(‘paged’)) {
$paged = get_query_var(‘paged’);
} elseif (get_query_var(‘page’)) {
$paged = get_query_var(‘page’);
} else {
$paged = 1;
}
query_posts(array(‘category_name’ => $cat, ‘posts_per_page’ => 6, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘paged’ => $paged));
// The Loop
echo ‘
‘;
while (have_posts()):
the_post();
global $post;
echo ‘
while (have_posts()):
the_post();
global $post;
echo ‘
‘;
$default_attr = array(
‘alt’ => $post->post_title,
‘title’ => $post->post_title
);
// var_dump($post);
echo ‘
$default_attr = array(
‘alt’ => $post->post_title,
‘title’ => $post->post_title
);
// var_dump($post);
echo ‘
‘;
the_post_thumbnail(‘full’, $default_attr);
echo ‘
the_post_thumbnail(‘full’, $default_attr);
echo ‘
‘;
echo ‘
‘;
echo ‘
echo ‘
‘ . $post->ID . ‘
‘;
echo ‘
‘ . date(‘j-n-Y’, strtotime($post->post_date)) . ‘
‘;
the_category();
echo ‘
‘ . $post->post_title . ‘
‘;
echo ‘
‘ . $post->post_content . ‘
‘;
echo ‘
‘;
echo ‘
‘;
echo ‘READ MORE‘;
endwhile;
echo ‘
‘;
echo ‘
‘;
// Reset Query
wp_reset_query();
[/insert_php]