go41

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

von Joern am 24. Feb. 2011 | Keine Kommentare

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 never stand alone in this direction "{".
This part "Code:

<?php if(!is_paged()) { ?>

" reads:

if it is not paged do something until you find this:

"Code:

<?php } ?>

"
Your error said there is one "}" in your index.php coming unexpectedly, that’s why I thought either you deleted by accident any line ending with "… { ?>" or you added by accident this bracket "}" somewhere in php code.
I do not need to see your index.php, but my advice is not to put so many remarks in there. If you remove something just delete it, uncommenting it makes it just invisible in the browser, but code in there is still running (as you can see in source of your site)
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

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)

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…

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 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: