• I create the code and put the code: [php snippet=1] into a post. When I show the post nothing happens? Can you please help me on this?

    The code I use is this and is for showing the current weeks posts:
    /* Help the query to create pagination */
    $limit = get_option(‘posts_per_page’);
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;

    /* Grab this week number of a year (ISO-8601) */
    $thisWeek = date(‘W’);

    /* Start to query! */
    $currentPosts = query_posts(‘showposts=’ . $limit .
    ‘&paged=’ . $paged .
    ‘&w=’.$thisWeek);

    https://www.ads-software.com/plugins/php-code-for-posts/

  • The topic ‘Don't show anything?’ is closed to new replies.