Forum Replies Created

Viewing 15 replies - 16 through 30 (of 35 total)
  • Log into your WordPress Admin Dashboard and go to edit a page. When you are on the page to edit the full post, look along the right hand side and scroll down to the Attributes section. Under Template make sure it is set to the Default Template and not something like Archives.

    If that doesn’t fix your problem, reply back here and we can continue on.

    You are already inside of the PHP tags yet you are trying to use plain HTML without setting the HTML up inside of a variable. You need to do something like the following.

    <?php if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') ) { ?>
    
    <link rel="stylesheet" href="https://magicdea.homeip.net/wp-content/themes/Magicdea/style_ie.css" type="text/css" media="screen" />
    
    <?php } else { ?>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <?php } ?>

    You are going to need to edit the code inside of the wp-admin/admin-header.php file. Make sure you make a backup/copy of this file before making changes in case something goes wrong.

    Once you have the admin-header.php file open look for the following line of code:

    <img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?> <span>&larr; <?php _e('Visit site') ?></span></a></h1>

    Within this line of code you are going to want to modify

    <a href="<?php echo trailingslashit( get_bloginfo('url') );?>" title="<?php _e('Visit site') ?>">

    Just change the above code inside of href=”” to whatever URL that you want the link to point to.

    I would just drop Yahoo all together and go with a more reliable hosting provider such as HostGator.

    It sounds as though a lot of the problems you are having have to deal with have to do with the core files of WordPress and considering you cannot upgrade to the latest version automatically I would either find somebody who can do it for you or find a new web host.

    The search meaning when somebody searches on your blog using the default search box? No, that just hides it from displaying a link to that particular post or page.

    Other then just creating a custom page and somehow providing a link to that would be the only way that I can think of to actually keep a page from showing up anywhere. You could make the page private and require people to give a password when they try to view it. I am not sure if making it private would actually hide it from search results though.

    Hey, glad you got it working! ??

    You do have the html template inside of the themes folder in your WP directory right? Sorry I didn’t mention that but you should have the file that you pasted above as index.php inside of a folder inside of the themes directory.

    It should like something like
    https://www.yourdomainname.com/wp-content/themes/themename/index.php

    Probably something to do with your permalinks or your .htaccess file. Which webhost are you using as well?

    It is quite possible that they have a module disabled preventing the permalinks from working correctly.

    The code I gave you will do exactly what you are trying to explain.

    It will lists all posts in the category with an ID of 9, all posts in the category that uses the slug blue-cheese and all posts in the Stinky Cheeses category. That code will list all posts that are in those 3 categories.

    Hey Xplozn, it’s quite possible that you may have a category.php file that the developer used instead of using the archive.php file. Were you able to find

    <?php the_content(); ?>

    inside of the archive.php file? You may want to see if there is a category.php file and check for the_excerpt inside of there. Lemme know what you find out and we can go from there.

    You need to start the WordPress loop code otherwise known as The Loop.

    This lets you start to pull information from WordPress and use it to display your post data.

    So on your main page that you displayed you need to have

    <?php get_header(); ?>

    somewhere inside of the BODY tags. From there we move onto more code of The Loop.

    <?php
    if (have_posts()) :
    while (have_posts()) :
    the_post();

    That will start up the main part of the loop and then all you have to do is place the WP tags wherever you want inside of your code.

    So to redo some of your code it would look like

    <?php get_header();
    if(have_posts()) :
    while (have_posts()) :
    the_post();
    ?>
    <div align="center">
      <table width="200" border="0" padding="0">
        <tr>
          <td><div align="left"><img src="webimages/toplogomenu.jpg"  align="right" width="900" height="405" border="0" usemap="#Map" /></div></td>
        </tr>
        <tr>
          <td background="webimages/tabmiddle.jpg" class="tableset"><div align="left">
    <?php the_content(); ?>
    <?php comments_template(); ?>
    <?php endwhile; else: endif; ?>
    </div>
          <div align="left"></div>        <div align="left"></div>        <div align="left"></div>        <div align="left" class="style3"></div>
          <p class="style5">&nbsp;</p>
          <p class="style5">&nbsp;</p></td>
        </tr>
    
        <tr>
          <td><div align="left"><img src="webimages/bottomban.jpg" width="900" height="60" /></div></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
    </div>

    Sort of like that, hopefully you can understand somewhat. This should give you a basic understanding and if you already know HTML and some PHP you should be able to figure it out. If not, lemme know and I’ll try to explain further.

    Go into your theme’s directory and open up comments.php. Inside of that file do a search for Comments are closed and just erase that.

    If your comments.php file is unchanged the code that you are wanting to remove will look like

    <p class="nocomments">Comments are closed.</p>

    That line of code is located on line 59.

    Just remove that code and nothing else. Leave all the other code around it alone because if you mess with that it will more then likely screw up your whole theme and throw an error.

    It sounds like your posts are using the_content() on the main page if they are displaying images as well but then again you say that it is already showing a snippet.

    If you look at your theme’s index.php see if you can find either

    <?php the_excerpt(); ?>
    
    <?php the_content(); ?>

    the_excerpt wont show a picture on your main page and will only show the first 55 words of your post. On the other hand, the_content displays the full post along with images and everything.

    Using the_excerpt will also create a Continue Reading link or something similar. Are you currently using the more tag to create snippets?

    You can use a plugin such as andrea suggested or just go into your theme’s index.php file and change it there. If you decide to dive into the code, open up index.php and look for a piece of code that should be

    <?php the_content(); ?>

    This displays the entire post instead of just a small snippet like you are looking for. To display a small snippet with a link to read the entire post change

    <?php the_content(); ?>

    over to

    <?php the_excerpt(); ?>

    Doing this will only show the first 55 words of your post which can end up quite short. I wrote a blog post awhile back ago about how to change the WordPress excerpt length awhile ago.

    Make a post how exactly? Do you mean so that they can register and make an actual post on your blog or respond to a comment on a post on your blog?

    If you want them to be able to post on your blog they have to register first to be able to do that. You would use

    <?php wp_register(); ?>

    which will create a link allowing visitors to register for your blog and start posting.

    If you are looking to have a link to the comment section of each post you would so something like

    <a href="<?php the_title(); ?>#respond">Reply to post</a>

    This will direct visitors to the comment form on the single blog post. The #respond value may be different according to your blogs theme but most likely it should work just fine.

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