Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter York

    (@york)

    This code no longer works with WordPress 2.5.

    Does anyone know how to ignore the <!–more–> tag on the most recent post in 2.5?

    Thanks for your help.

    Thread Starter York

    (@york)

    Thanks for the tip, srikat. I’ve sent an e-mail to the theme designer seeking assistance.

    If anyone else knows how to add additional columns to a theme, or can point me to other useful resources, I’d appreciate your help.

    Cheers,

    York

    I would like to achieve a similar goal with my website, but I haven’t found a forum discussion that clearly explains how.

    If someone knows how, or can point to a resolved discussion on the topic, I’d appreciate it.

    Cheers,

    York

    Thread Starter York

    (@york)

    Thanks, moshu. That seems to have accomplished it. (On a side note, would you recommend any resources for learning PHP to improve my understanding of WordPress’ source code?)

    For others who may be interested, I replaced

    <?php the_content(__('... (read more)'));?>

    in my index.php and home.php template files with

    <?php
    if( ($post == $posts[0]) && !is_paged() ) :
    	echo apply_filters('the_content', $post->post_content);
    else :
    	the_content();
    endif;
    ?>

    Now the most recent post on my main page displays in its entirety. The <more> tag I included when I wrote the post is ignored until it is no longer the most recent post, at which point the <more> tag is recognized.

    Thanks to the moderators for their excellent support.

    Thread Starter York

    (@york)

    Thank you for the detailed response, Kafkaesqui. In my template the code is slightly different:

    <?php the_content(__('... (read more)'));?>

    Should I replace that entire line of code with what you’ve provided?

    Thread Starter York

    (@york)

    Thank you for your help, BPartch. Unfortunately, the visual design of my website is based around the specific placement of the <!–more–> tag in most posts, so transitioning to excerpts may cause more issues than it resolves for me.

    If anyone knows how to write PHP to ignore the <!–more–> tag on my most recent post only, I look forward to learning it.

    Thread Starter York

    (@york)

    Thanks for the tip, Otto. After some trial and error, I determined that it was WP-Enhanced Plugin Manager that was causing the error. I removed it, and the issue is resolved.

    Thread Starter York

    (@york)

    Any input is appreciated. Thanks!

    Thread Starter York

    (@york)

    I’ve modified my design somewhat. The new code, which inserts the category image (icon) into each post heading, followed by the title and date, looks like this:

    <div class="contenttitle">
    	<h1><?php foreach((get_the_category()) as $cat)
     { echo '<img src="https://www.yorkrules.com/yorkrules3/global/images/categoryIcon/' . $cat->cat_ID . '.jpg"
    alt="' . $cat->cat_name . '" />'; } ?><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    	<h3><?php the_time('F j, Y'); ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></h3>
    	</div>

    Thanks for your input on this issue, richsipe.

    Thread Starter York

    (@york)

    Thanks to HandySolo and my fellow members for their assistance. I am now using categories with a single WordPress server installation, and it’s met the needs I stated in my original posting.

    Thread Starter York

    (@york)

    The current, working code is:

    <?php if (is_category(1)) { ?> <body id="indexPage" onload="P7_ExpMenu()">
    <?php } else if (is_category(4)) { ?> <body id="learnPage" onload="P7_ExpMenu()">
    <?php } else if (is_category(3)) { ?> <body id="lookPage" onload="P7_ExpMenu()">
    <?php } else if (is_category(5)) { ?> <body id="playPage" onload="P7_ExpMenu()">
    <?php } else if (is_category(7)) { ?> <body id="readPage" onload="P7_ExpMenu()">
    <?php } else if (is_category(8)) { ?> <body id="sharePage" onload="P7_ExpMenu()">
    <?php } else if (is_category(9)) { ?> <body id="shopPage" onload="P7_ExpMenu()">
    <?php } else { ?> <body id="indexPage" onload="P7_ExpMenu()"> <?php } ?>

    Thanks to Otto42 for your assistance in resolving this issue.

    Thread Starter York

    (@york)

    I did not include onload="P7_ExpMenu()" in the body tag.

    The page now works properly with the following code:
    `
    <?php if (is_category(1)) { ?> <body id=”indexPage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(4)) { ?> <body id=”learnPage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(3)) { ?> <body id=”lookPage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(5)) { ?> <body id=”playPage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(7)) { ?> <body id=”readPage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(8)) { ?> <body id=”sharePage” onload=”P7_ExpMenu()”>
    <?php } else if (is_category(9)) { ?> <body id=”shopPage” onload=”P7_ExpMenu()”>
    <?php } else { ?> <body id=”indexPage” onload=”P7_ExpMenu()”> <?php } ?>

    Thanks to all the members who offered their assistance on this issue.

    Thread Starter York

    (@york)

    My error. I needed to insert the code

    <?php foreach((get_the_category()) as $cat)
     { echo '<img src="https://www.yorkrules.com/yorkrules3/global/images/categoryIcon/' . $cat->cat_ID . '.jpg"
    alt="' . $cat->cat_name . '" />'; } ?>

    in four different pages in my theme (archive, home, index, search).

    It works now.

    Thread Starter York

    (@york)

    Bueller?

    Thread Starter York

    (@york)

    Thanks for your input.

    I had previously tried replacing

    <style type="text/css" media="screen">
    <!-- @import url( <?php bloginfo('stylesheet_url'); ?> ); -->
    </style>

    with

    <link rel="stylesheet" type="text/css" href="https://www.yorkrules.com/yorkrules3/wordpress/wp-content/themes/blue-zinfandel-enhanced-20/style.css">

    But that had no effect, so I returned to the @import method.

    I also included the link to the javascript that’s used in the navbar, but again, without success.

    The theme’s XHTML was not valid, but per doodlebee’s suggestion, I made the necessary changes, and now it is – still, no success.

    Root, would you clarify for me your thoughts on the DTD?

    Also, could the javascript links in my header be in the wrong place, or is there some other syntax error I’ve missed?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="distribution" content="global" />
    <meta name="robots" content="follow, all" />
    <meta name="language" content="en, sv" />
    
    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <!-- leave this for stats please -->
    
    <link rel="Shortcut Icon" href="<?php echo get_settings('home'); ?>/wp-content/themes/blue-zinfandel/images/favicon.ico" type="image/x-icon" />
    <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(); ?>
    <script type="text/javascript" src="https://www.yorkrules.com/yorkrules3/global/js/p7exp.js"></script>
    <!--[if lt IE 7]>
    <script defer type="text/javascript" src="https://www.yorkrules.com/yorkrules3/global/js/pngfix.js"></script>
    <![endif]-->
    <style type="text/css" media="screen">
    <!-- @import url( <?php bloginfo('stylesheet_url'); ?> ); -->
    </style>
    </head>

    Thank you for your continued assistance.

Viewing 15 replies - 1 through 15 (of 21 total)