• Hi guys im getting all my articles listed on the mainpage this results in the vertical scroll bar getting larger and larger. How can i archive articles after 1 day so only the current day’s articles are listed only ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter gingerbeer2000

    (@gingerbeer2000)

    i’ve figured it out now ?? in the options reading section but i have another issue! I need to know how i can archive a particular post ? even if i have just posted it Help please.

    Thread Starter gingerbeer2000

    (@gingerbeer2000)

    Another thing i checked no to link discription but they are still visible how can i remove this ?

    your posts are archived at the moment you hit publish… ?? there is no waiting period.

    I dont know about the links problem. a link to your website may be needed.

    Thread Starter gingerbeer2000

    (@gingerbeer2000)

    https://www.politicalmaestro.com/ check my links section i have checked no to link discription but they are still visible how can i remove this ?

    we need to see the code that u use to call the links section. can you copy the contents of index.php to a text file, say index.txt and upload it on ur server and let us know when u r ready ?

    Thread Starter gingerbeer2000

    (@gingerbeer2000)

    i use the kubrick design layout here it is below;

    <?php /* Don’t remove this line. */ require(‘./wp-blog-header.php’); ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;

    <head profile=”https://gmpg.org/xfn/1″&gt;
    <title> <?php if (($withcomments) or ($single)) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <link rel=”stylesheet” href=”<?php echo get_settings(‘siteurl’); ?>/wp-layout.css” type=”text/css” media=”screen” />

    <style type=”text/css” media=”screen”>

    /* BEGIN IMAGE CSS */
    /* To accomodate differing install paths of WordPress, images are referred only here,
    and not in the wp-layout.css file. If you prefer to use only CSS for colors and what
    not, then go right ahead and delete the following lines, and the image files. */

    body { background: url(“<?php echo get_settings(‘siteurl’); ?>/images/kubrickbgcolor.jpg”); } <?php /* Checks to see whether it needs a sidebar or not */ if ((! $withcomments) && (! $single)) { ?>
    #page { background: url(“<?php echo get_settings(‘siteurl’); ?>/images/kubrickbg.jpg”) repeat-y top; border: none; } <?php } else { // No sidebar ?>
    #page { background: url(“<?php echo get_settings(‘siteurl’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; } <?php } ?>
    #header { background: url(“<?php echo get_settings(‘siteurl’); ?>/images/kubrickheader.jpg”) no-repeat bottom center; }
    #footer { background: url(“<?php echo get_settings(‘siteurl’); ?>/images/kubrickfooter.jpg”) no-repeat bottom; border: none;}

    /* Because the template is slightly different, size-wise, with images, this needs to be set here
    If you don’t want to use the template’s images, you can also delete the following two lines. */

    #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    #headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }
    /* END IMAGE CSS */

    /* To ease the insertion of a personal header image, I have done it in such a way,
    that you simply drop in an image called ‘personalheader.jpg’ into your /images/
    directory. Dimensions should be at least 760px x 200px. Anything above that will
    get cropped off of the image. */

    #headerimg { background: url(‘<?php echo get_settings(‘siteurl’); ?>/images/personalheader.jpg’) no-repeat top;}

    </style>

    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php wp_get_archives(‘type=monthly&format=link’); ?>

    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

    <? // Begin Header ?>
    <div id=”header”>
    <div id=”headerimg”>
    <h1>” title=””></h1>
    <div class=”description”></div>
    </div>
    </div>
    <hr />
    <? // End Header ?>

    <? // Begin Frontpage ?>
    <?php if (empty($_GET[‘cat’]) and empty($_GET[‘category_name’]) and empty($_GET[‘m’]) and empty($_GET[‘s’]) and empty($_GET[‘paged’]) and empty($_GET[‘year’]) and empty($_GET[‘monthnum’]) and empty($_GET[‘day’])) {
    if ((! $withcomments) && (! $single)) { ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if ($posts) { ?>

    <?php foreach ($posts as $post) : start_wp(); ?>

    <div class=”post”>
    <h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>

    <p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’,”,’|‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>

    <!–
    <?php trackback_rdf(); ?>
    –>
    </div>

    <?php endforeach; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>

    <?php } else { ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”><?php _e(“Sorry, but you are looking for something that isn’t here.”); ?>
    <?php include “kubrick-searchform.php”; ?>

    <?php } ?>

    </div>

    <? } } // End Frontpage ?>

    <? // Begin Permalinks ?>
    <?php if (($withcomments) or ($single)) { ?>

    <div id=”content” class=”widecolumn”>

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php previous_post(‘« %’,”,’yes’) ?></div>
    <div class=”alignright”><?php next_post(‘ % »’,”,’yes’) ?></div>
    </div>

    <div class=”post”>
    <h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=”entrytext”>
    <?php the_content(‘<p class=”serif”>Read the rest of this entry »’); ?>

    <?php link_pages(‘Pages: ‘, ”, ‘number’); ?>

    <p class=”postmetadata graybox”>
    <small>
    This entry was posted
    <?php /* This is uncommented, because it requires a little adjusting sometimes.
    You’ll need to download this plugin, and follow the instructions:
    https://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    /* $entry_datetime = abs(strtotime($post->post_date) – (60*120)); echo time_since($entry_datetime); echo ‘ ago’; */ ?>
    on <?php the_time(‘l, F jS, Y’) ?> at <?php the_time() ?>
    and is filed under <?php the_category(‘, ‘) ?>.
    You can follow any responses to this entry through the “>RSS 2.0
    feed.

    <?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    You can leave a response, or “>trackback from your own site.

    <?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Only Pings are Open ?>
    Responses are currently closed, but you can “>trackback from your own site.

    <?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    You can skip to the end and leave a response. Pinging is currently not allowed.

    <?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

    <?php } edit_post_link(‘Edit this entry.’,”,”); ?>

    </small>

    </div>
    </div>

    <?php include(ABSPATH . ‘wp-comments.php’); ?>

    <?php endforeach; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    </div>

    <? } // End Permalinks ?>

    <? // Begin Archives ?>
    <?php /* If this page was loaded as an archive or search page */ if ((!empty($_GET[‘year’]) or !empty($_GET[‘monthnum’]) or !empty($_GET[‘day’]) or !empty($_GET[‘day’]) or !empty($_GET[‘category_name’]) or !empty($_GET[‘author’]) or !empty($_GET[‘cat’]) or !empty($_GET[‘m’]) or !empty($_GET[‘paged’])) or !empty($_GET[‘s’]) and (!($withcomments) or !($single))) {
    if ((! $withcomments) && (! $single)) { ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if ($posts) { ?>

    <?php /* If this is a category archive */ if ((isset($_GET[‘cat’]) && !empty($_GET[‘cat’])) or (isset($_GET[‘category_name’]) && !empty($_GET[‘category_name’]))) { ?>
    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    <?php /* If this is a daily archive */ } elseif (isset($_GET[‘day’]) && !empty($_GET[‘day’])) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F jS, Y’); ?></h2>

    <?php /* If this is a monthly archive */ } elseif ((isset($_GET[‘m’]) && !empty($_GET[‘m’])) or (isset($_GET[‘monthnum’]) && ! empty($_GET[‘monthnum’]))) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F, Y’); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (isset($_GET[‘year’]) && !empty($_GET[‘year’])) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘Y’); ?></h2>

    <?php /* If this is a search */ } elseif (isset($_GET[‘s’]) && !empty($_GET[‘s’])) { ?>
    <h2 class=”pagetitle”>Search Results</h2>

    <?php /* If this is an author archive */ } elseif (isset($_GET[‘author’]) && !empty($_GET[‘author’])) { ?>
    <h2 class=”pagetitle”>Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h2 class=”pagetitle”>Blog Archives</h2>

    <?php } ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>

    <?php foreach ($posts as $post) : start_wp(); ?>

    <div class=”post”>
    <h3 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘l, F jS, Y’) ?></small>

    <div class=”entry”>
    <?php the_excerpt() ?>
    </div>

    <p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’,”,’|‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>

    <!–
    <?php trackback_rdf(); ?>
    –>
    </div>

    <?php endforeach; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>

    <?php } else { ?>

    <h2 class=”center”>Not Found</h2>
    <?php include “kubrick-searchform.php”; ?>

    <?php } ?>

    </div>

    <? } } // End Archives ?>

    <? // Begin Sidebar Menu ?>
    <?php /* If this is not a permalink page, show the menu */ if (!($withcomments) && (!$single)) { ?>

    <div id=”sidebar”>

    • <?php include “kubrick-searchform.php”; ?>
    • <!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2><?php _e(‘Author’); ?></h2>
      A little something about you, the author. Nothing lengthy, just an overview.
    • –>

    • <?php /* If this is a category archive */ if ((isset($_GET[‘cat’]) && !empty($_GET[‘cat’])) or (isset($_GET[‘category_name’]) && !empty($_GET[‘category_name’]))) { ?>
      You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
      for the ‘<?php echo single_cat_title(); ?>’ category.

      <?php /* If this is a yearly archive */ } elseif (isset($_GET[‘day’]) && !empty($_GET[‘day’])) { ?>
      You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
      for the year <?php the_time(‘l, F jS, Y’); ?>.

      <?php /* If this is a monthly archive */ } elseif ((isset($_GET[‘m’]) && !empty($_GET[‘m’])) or (isset($_GET[‘monthnum’]) && ! empty($_GET[‘monthnum’]))) { ?>
      You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
      for <?php the_time(‘F, Y’); ?>.

      <?php /* If this is a yearly archive */ } elseif (isset($_GET[‘year’]) && !empty($_GET[‘year’])) { ?>
      You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
      for the year <?php the_time(‘Y’); ?>.

      <?php /* If this is a monthly archive */ } elseif (isset($_GET[‘s’]) && !empty($_GET[‘s’])) { ?>
      You have searched the “><?php echo bloginfo(‘name’); ?> weblog archives
      for ‘<?php echo htmlentities($s); ?>’. If you are unable to find anything in these search results, you can try one of these links.

      <?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
      You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives.

      <?php } ?>

    • <h2><?php _e(‘Calendar’); ?></h2>
      <?php get_calendar(); ?>
    • <h2><?php _e(‘Archives’); ?></h2>
      <?php wp_get_archives(‘type=monthly’); ?>
    • <h2><?php _e(‘Categories’); ?></h2>
      <?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>

    <?php /* If this is the frontpage */ if (empty($_GET[‘cat’]) and empty($_GET[‘m’]) and empty($_GET[‘paged’]) and empty($_GET[‘year’]) and empty($_GET[‘monthnum’]) and empty($_GET[‘day’]) and empty($_GET[‘category_name’]) and empty($_GET[‘author’]) and empty($_GET[‘s’])) { ?>

    • <h2><?php _e(‘Links’); ?></h2>
      <?php get_links(‘-1’, ‘

    • ‘, ‘
    • ‘, ‘
      ‘); ?>

    • <h2><?php _e(‘Admin’); ?></h2>

    <?php } ?>

    </div>

    <? } // End Sidebar Menu ?>

    <? // Begin Footer ?>
    <hr />
    <div id=”footer”>

    <?php bloginfo(‘name’); ?> is proudly powered by
    WordPress <?php echo $wp_version; ?>
    <!–
    and valid XHTML and
    CSS.
    –>

    “>Entries (RSS)
    and “>Comments (RSS).
    <!– Spawned in <?php timer_stop(1); ?> seconds. –>
    Design by Michael Heilemann.

    </div>
    </div>
    <? // End Footer ?>

    <?php /* “Just what do you think you’re doing Dave?” */ ?>

    </body>
    </html>

    ok…I suggest reading this page.

    https://wiki.www.ads-software.com/?pagename=get_links

    find “get_links” on the index.php and replace it with
    get_links(‘-1’ , ”, ”, ”, false,”,false,”,-1,false)

    That will solve the problem

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Archive Articles’ is closed to new replies.