drmanry
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Titles aren’t H1 Tags??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.
Forum: Fixing WordPress
In reply to: Is it able to choose the page I want to publish the post?This isn’t hacking the WordPress code. It is editing a theme. There is not standard WP option for this.
Forum: Fixing WordPress
In reply to: Is it able to choose the page I want to publish the post?You can use a query in your page.php file. Something like this…
<?php if (is_page('pagename')) { echo('<ul>'); query_posts('cat=1&showposts=-1&orderby=title&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>'); } ?>
Forum: Fixing WordPress
In reply to: How do I change my page logo?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
Forum: Fixing WordPress
In reply to: How do I change my page logo?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.
Forum: Fixing WordPress
In reply to: include files into header.php?As long as ads.php is in the same directory as index.php, this should work:
<?php include("ads.php"); ?>
Forum: Fixing WordPress
In reply to: Adding Tags list to the archive pageTry something like this:
$tags = get_tags(); foreach ($tags as $tag) { echo $tag->name.'('.$tag->count.')'; }
Forum: Fixing WordPress
In reply to: How to locate editable code to change from RSS2 to RSSOkay, 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.
Forum: Fixing WordPress
In reply to: How to locate editable code to change from RSS2 to RSSYou 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; } }
Forum: Fixing WordPress
In reply to: Renaming the urls, instead of using “?page_id=”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.
Forum: Fixing WordPress
In reply to: Use a wordpress catergory in my websites sidebarSomething 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;?>
Forum: Fixing WordPress
In reply to: Renaming the urls, instead of using “?page_id=”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!
Forum: Fixing WordPress
In reply to: Part way there… what am I doing wrong??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>');
Forum: Fixing WordPress
In reply to: include templatepath functionronchicago,
Since you’re supplying an absolute path, just use
<?php include ('https://www.domain.com/wp-content/themes/theme/header2.php'); ?>
Forum: Fixing WordPress
In reply to: dynamic drop down menu (wp_list_pages)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.