go41

Re: making category appear as page :: Reply by kinyofu

von Joern am 24. Feb. 2011 | Keine Kommentare

Thanks Joern for checking in. My experiments of late has resulted in a few (above the header) errors that I was able to work through.
I copied your code in index.php, but it is returning errors that are not related to any of the line numbers of the new code. I deleted some comments thinking they might have been the problem (because one error was on comment line). My latest error is similar to my first error (removing comments did not solve anything).
Here’s error: Parse error: syntax error, unexpected ‚}‘ in /home/kinyofu/public_html/empoweringwomenslives.com/wp-content/themes/arthemia-screwed/index.php on line 107
Here’s the section with which line 107 is located (note that line 107 is blank)
Code:


(96)<!--******Kinyofu's comment- can change name "featured" here-->
   <?php query_posts("showposts=1&cat=8"); $i = 1; ?>
         <?php while (have_posts()) : the_post(); ?>
   <div class="clearfloat">

(107)

   <?php $values = get_post_custom_values("Image");
   if (isset($values[0])) { ?>
      " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
   <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  />
      <?php } ?>

If you need to see the entire file, let me know. (I hope I am using the [code] button correctly).
Kinyofu

(von: kinyofu)

Hier noch 10 weitere Ergebnisse dieses Threads:

making category appear as page

23. Feb. 2011 (von: kinyofu)

Hi Joern,I hope you are available to answer this question. I have been searching for a way (within Arthemia free) to have my categories, when clicked, go to a page with a different theme. I experimented with Single Post Template…

Re: making category appear as page :: Reply by Joern

23. Feb. 2011 (von: Joern)

I am looking at your site sometimes, seeing all that stuff above the header or errors, I thought 'what is she doing?'About your links in the category bar, I think I suggested already to code them into index.php directly. Do…

Re: making category appear as page :: Reply by kinyofu

24. Feb. 2011 (von: kinyofu)

By the way, I am switching my index.php back to original so that my site won't show error.(the code button did not do what I thought it would. LOL.)Kinyofu Weiterlesen →

Re: making category appear as page :: Reply by Joern

24. Feb. 2011 (von: Joern)

as the error says, syntax error, unexpected '}' in .., there is one '}' where the first part is missing of.Does the top of your index.php still look like this:Code:<?php get_header(); ?>   <?php if(!is_paged()) { ?>   <div id="top" class="clearfloat">Here is…

Re: making category appear as page :: Reply by kinyofu

24. Feb. 2011 (von: kinyofu)

Hi Joern,I'm not sure if I understand. I still have <?php if(!is_paged()) { ?> in my file as well as <?php { ?> further down. Is that wrong?Kinyofu Weiterlesen →

Re: making category appear as page :: Reply by kinyofu

24. Feb. 2011 (von: kinyofu)

I now, just switched indexes so my site can be up. Let me know if you need to see the index file.Kinyofu Weiterlesen →

Re: making category appear as page :: Reply by Joern

24. Feb. 2011 (von: Joern)

You say: "I still have <?php if(!is_paged()) { ?> in my file as well as <?php { ?> further down. Is that wrong?"If it like this " <?php { ?> " it would be wrong. This kind of bracket will…

Re: making category appear as page :: Reply by kinyofu

25. Feb. 2011 (von: kinyofu)

Thank you sooooo much Joern, your brilliance never ceases to amaze me.There is one thing that I can't figure out - and it is my doing, or rather undoing. I used to have one post in the headline section, now…

Re: making category appear as page :: Reply by Joern

25. Feb. 2011 (von: Joern)

I guess you query for 2 posts in that category, likequery_posts("showposts=2&cat=20");this shows you the last two posts from that category "featuredtopic (Featured Topic)"To see only one you need to set to showposts=1Now it should show you only one, the latest…

Re: making category appear as page :: Reply by kinyofu

25. Feb. 2011 (von: kinyofu)

Thanks. Weiterlesen →

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: