Forum Replies Created

Viewing 15 replies - 16 through 30 (of 34 total)
  • In the theme editor, open the index.php file and look for something like this:

    <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

    Change the <h3> and </h3> to h2.

    This isn’t hacking the WordPress code. It is editing a theme. There is not standard WP option for this.

    You can use a query in your page.php file. Something like this…

    <?php if (is_page('pagename')) {
    echo('<ul>');
    query_posts('cat=1&amp;showposts=-1&amp;orderby=title&amp;order=ASC');
    if (have_posts()) : while (have_posts()) : the_post();
    echo('<li><a href="');
    the_permalink();
    echo('">');
    the_title();
    echo('</a></li>');
    endwhile; endif;
    echo('</ul>');
    }
     ?>

    Matt,

    From the dashboard, look for the “Appearance” heading in the left column. Under “Appearance” click “Editor”. With the edit page open, on the right hand side, you should see a column labeled “Theme Files”. Click on the one shown as “Header (header.php)”. Now you can edit the header.php file.

    Dale

    Looking in header.php, it seems that the logo image is hardcoded:

    <div id="logo">
            	<a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/logo.jpg" alt="<?php bloginfo('name'); ?>" /></a>
            </div>

    So either replace the logo.jpg file in the images directory with a new file named logo.jpg or change the code in header.php to point to your logo file.

    As long as ads.php is in the same directory as index.php, this should work:

    <?php include("ads.php"); ?>

    Try something like this:

    $tags = get_tags();
    foreach ($tags as $tag) {
    echo $tag->name.'('.$tag->count.')';
    }

    Okay, I see a call to rss2 in /thematic/library/extensions/widgets.php

    // Widget: Thematic RSS links
     function widget_thematic_rsslinks($args) {
     extract($args);
     $options = get_option('widget_thematic_rsslinks');
     $title = empty($options['title']) ? __('RSS Links', 'thematic') : $options['title'];
     ?>
     <?php echo $before_widget; ?>
     <?php echo $before_title . $title . $after_title; ?>
     <ul>
     <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> <?php _e('Posts RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All posts', 'thematic') ?></a></li>
     <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> <?php _e('Comments RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All comments', 'thematic') ?></a></li>
     </ul>
     <?php echo $after_widget; ?>
     <?php
     }

    I’m not sure why they hardcoded rss2, but you can try changing those to rss.

    You need to edit the file /thematic/library/extensions/hooks-filters.php

    The function thematic_show_rss() is creating the RSS links.

    // rss usage is switchable using a filter
    function thematic_show_rss() {
        $display = TRUE;
        apply_filters('thematic_show_rss', §display);
        if (§display) {
            $content = "\t";
            $content .= "<link rel=\"alternate\" type=\"application/rss+xml\" href=\"";
            $content .= get_bloginfo('rss2_url');
            $content .= "\" title=\"";
            $content .= wp_specialchars(get_bloginfo('name'), 1);
            $content .= " " . __('Posts RSS feed', 'thematic');
            $content .= "\" />";
            $content .= "\n";
            echo $content;
        }
    }

    Below is some info from this part of the codex…

    Where’s my .htaccess file?

    WordPress’s index.php and .htaccess files should be together in the directory indicated by the Blog address (URI) setting on your General Options page. Since the name of the file begins with a dot, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files. Some hosts (e.g. Godaddy) may not show or allow you to edit .htaccess if you install WordPress through the Godaddy Hosting Connection installation.
    Creating and editing (.htaccess)

    If you do not already have a .htaccess file, create one. If you have shell or ssh access to the server, a simple touch .htaccess command will create the file. If you are using FTP to transfer files, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress folder, and then rename it to .htaccess.

    You can edit the .htaccess file by FTP, shell, or (possibly) your host’s control panel.

    If your .htaccess file contains errors that bring down your site (“Internal Server Error (500)”), you will need to use FTP or your host’s control panel to delete the rogue .htaccess file.

    Something like this should get you started…

    // Show the last 5 posts in the latest_news category.
      <?php query_posts('category_name=latest_news&showposts=5'); ?>
    
      <?php while (have_posts()) : the_post(); ?>
         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
     <div class="entry">
       <?php the_content(); ?>
     </div>
    
      <?php endwhile;?>

    From the Admin Panel, go to Settings->Permalinks.
    Click the radio button next to Custom.
    In the text box, enter /%postname%/
    Click Save Changes.

    I was just a little too slow!

    Here’s something I’ve used:

    echo('<ul>');
     query_posts('cat=4&showposts=-1');
     if (have_posts()) : while (have_posts()) : the_post();
     echo('<li><a href="');
     the_permalink();
     echo('">');
     the_title();
     echo('</a></li>');
     endwhile; endif;
     echo('</ul>');

    ronchicago,

    Since you’re supplying an absolute path, just use
    <?php include ('https://www.domain.com/wp-content/themes/theme/header2.php'); ?>

    micasuh,

    The code works for multiple levels of menus. In your code, you have specified depth=1, which will show only top-level pages. The default is depth=0, which is the assigned value if not specified. This causes all pages to be listed, including sub-pages.

    It works.

Viewing 15 replies - 16 through 30 (of 34 total)