Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter nhall

    (@nhall)

    I have tried to develop one loop that will display the posts differently. Here is the code that I have so far:
    https://pastebin.com/383424

    When I test this I get the following error:
    “Parse error: parse error, expecting `'(” in /wp-content/themes/single/index.php on line 33″

    Line 33 on my index.php is equal to line 15 in my pastebin.

    Can’t you block specific IP’s through the admin interface?

    Thread Starter nhall

    (@nhall)

    Here it is a month later and I am still trying to figure out the same problem. I like the two different methods that Ming discussed, but here is the question. If I incorporate a second loop, will this create problems down the road. Lets say that I get this finished and then the release an new wordpress. Will I just be able to upgrade?

    As for the difference between the two methods. When you say that it can be better if the posts don’t directly follow eachother in the source code, I just want to make sure I understand. You mean that if in my layout I have a something like a div element separating the different posts, I will need two loops?

    I will probably come back with some php syntax questions.

    Thanks

    1. A new declaration to your CSS should fix the first issue. Try somehting like this:
      ul#navi-innen3 li{color:#C7BDA1; font-weight:bold;}
      I think that should do it.

    I see your problem but I do not think that it has to do with the whitespace in your code. I saved a simple html file with two unordered lists. One with lots of whitespace, the other without any. When viewing the file in IE, both lists were identical. Are you sure it isn’t a style issue? Are the styles being inhereted? Do you have any broad declarations on<ul> or <li> Did you take away default margin and padding?
    Those were the ideas I came up with. I will take another look at your file.

    Could he just install wordpress using his IP number as opposed to url? Would that work?

    It has to do with the CSS of your masthead. The lines that you see is actually the background color showing through. You have the background color set to that brown because you are using the transparent gif. Your masthead has a set height that is taller than the image itself. I changed the height to 267px and it closed up.

    I have tested it and I do not believe it is true. I tested it on IE 5.2 mac, and IE 6.0 running Windows XP. What platform and version are you running when you experience this?

    Jaseone has pointed you to a great source. I would definitly read that. Another good one that explains columns can be found here.

    Anyways, your problem is not that your border is not showing up all of the way, it is. Your border is set to be on the left of <div id=”left”> (which it is). What your not seeing is that the “left” div is only as tall as its contents. It does not stretch to 100% of the height.

    Let me know if this makes senes. Here is a quick html/css version of what you had. https://www.njhall.com/support/columns.html (view it in safari or firefox)

    Thread Starter nhall

    (@nhall)

    Ming,
    Thank you so much for the great links. I will read up, it looks like they will be able to help with any queationa that i might have.

    Thanks again

    I was looking over this thread. I have been trying to display the two most recent posts, only as excerpts. This was simple,

    <?php query_posts('posts_per_page=2'); ?>

      <?php
      $posts = get_posts('numberposts=2');
      foreach ($posts as $post) :
      ?>

    • \"><?php the_title() ?><?php the_excerpt(); ?>
    • <?php
      endforeach;
      ?>

    easy enough, I still have a few questions though. Where is the excerpt limit declared. For example, where is it set how many characters or words are displayed before the post is cut off. Also, how do I remove the “[…]” when the excerpt is used.

    Thanks
    Nick

    I am a word press beginner, I am a little confused. I thought I had followed the directions correctly. I inserted this

    <?php
    function amm_my_first_go($amm){
    ?>

    <?php for ($x = 0; $x < $amm->totalItems(); $x++ ) :?>

    <strong>Title: </strong> <?php echo $amm->title();?>
    <strong>Author: </strong> <?php echo $amm->author();?>

    <?php $amm->nextItem(); endfor; ?>

    <?php
    return $content;
    }
    ?>

    at the bottom of “amm_extras.php”.
    I then inserted this
    <?php amm_getMedia('amm_my_fist_go',10); ?>
    at the bottom of sidebar.php.</p
    It is coming back with this error

    “Fatal error: Call to undefined function: amm_my_fist_go() in ../wp-content/plugins/amm/amm_output.php on line 137”

    I am confused, should I have modified amm_output.php? I am only modifying amm_extras.php, correct? Can anyone let me see thier modified amm_extras.php file?

    Thank you in advance for yout time and help

Viewing 12 replies - 1 through 12 (of 12 total)