Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Wordpress] Jak zmusić żeby wyświetlał rekordy w takim układzie
redelek
post
Post #1





Grupa: Zarejestrowani
Postów: 658
Pomógł: 37
Dołączył: 4.06.2005
Skąd: Wawa

Ostrzeżenie: (0%)
-----


Witam,

Walczę od wczoraj z wordpress.
Mam szablon i prawie wszystko już dopasowałem niestety mam problem z wyświetlaniem rekordów w takiej postaci jak na szablonie
http://home.redelek.net/szablon_ravnet/homepage.html

Macie może pomysły jak to zrobić ? Szablon już przerobiłem na div, żeby nie było na tabelkach, ale mam problem z wyświetlaniem artykułów.

Będę wdzięczny za pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
vokiel
post
Post #2





Grupa: Zarejestrowani
Postów: 2 592
Pomógł: 445
Dołączył: 12.03.2007

Ostrzeżenie: (0%)
-----


Która część sprawia Ci trudność?
Czy chodzi o sam html + css, czy pobranie postów z wordpress'a ?
Go to the top of the page
+Quote Post
redelek
post
Post #3





Grupa: Zarejestrowani
Postów: 658
Pomógł: 37
Dołączył: 4.06.2005
Skąd: Wawa

Ostrzeżenie: (0%)
-----


pobieranie postów z wordpress.

Obecnie poprawiony szablon wygląda tak
  1. <?php get_header(); ?>
  2.  
  3. <div class="container">
  4. <div id="div_box1">
  5. <div id="div_box1scale">
  6. <div class="hild1">
  7. <h1 class="h1-style1"><span><font size="4">Centrum Wsparcia Informatycznego</font></span></h1>
  8. <h2 class="h2-style1" align="center">022 869 75 15<br>
  9. Zadzwoń! Wypróbuj nasze usługi.</h2>
  10.  
  11.  
  12. </div>
  13.  
  14. <div class="hild2">
  15. <p>Świadczymy usługi <b>gwarantujące ciągłość pracy</b> środowisk
  16. informatycznych. Wpływamy przez to na wzrost rentowności
  17. i atrakcyjności
  18. biznesu naszych Klientów. <a href="#">Przekonaj się
  19. sam, że to nie slogan.</a></p>
  20. </div>
  21. <div class="clearfix"></div>
  22. </div>
  23. <div class="clearfix"></div>
  24. <div class="hild3">
  25. <h2 align="center"><span>Zarządzanie</span> majątkiem
  26. informatycznym<br>
  27. <br>
  28. <img src="wp-content/themes/ravnet/images/homepage05.jpg" alt="" width="267" height="118" /></h2>
  29. <p>Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis lorem ipsum dolor vestibulum vel purus. Vestibulum sed etiam. Lorem ipsum sit. <a href="#">More&hellip;</a></p>
  30. </div>
  31. <div class="hild4">
  32. <h2 align="center"><span>Outsourcing</span> IT<br>
  33. &nbsp;</h2>
  34. <p><img src="wp-content/themes/ravnet/images/homepage06.jpg" alt="" width="267" height="118" /></p>
  35. <p>Volutpat at varius sed sollicitudin et, arcu. Vivamus viverra. Nullam turpis. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. <a href="#">More&hellip;</a></p>
  36. </div>
  37. <div class="hild5">
  38. <h2 align="center"><span>Specjaliści</span> na potrzeby Twojego projektu<br>
  39. <br>
  40. <img src="wp-content/themes/ravnet/images/homepage07.jpg" alt="" width="267" height="118" /></h2>
  41. <p>Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis lorem ipsum dolor dolore. <a href="#">More&hellip;</a></p>
  42. </div>
  43.  
  44.  
  45.  
  46.  
  47. <div class="clearfix"></div>
  48.  
  49. </div>
  50.  
  51. <div id="div_box2">
  52. <div class="hild6">
  53. <h2><span>Artykuł</span> w Computerworld nr 34</h2>
  54. <p>Volutpat at varius sed sollicitudin et arcu. Vivamus viverra. Nullam turpis. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis lorem ipsum dolor vestibulum vel purus. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi.</p>
  55. <p><a href="#">&gt;&gt; Aenean lorem ipsum dolor&hellip;</a></p>
  56. </div>
  57. <div class="hild7">
  58. <h2><span>Pozostałe</span> informacje</h2>
  59. <ul class="ul-style1">
  60. <li><strong>08.28.09</strong> <a href="#">Współpraca z FairNet</a></li>
  61. <li><strong>08.27.09</strong> <a href="#">Audyt oprogramowania w TW</a></li>
  62. <li><strong>08.25.09</strong> <a href="#">Otrzymaliśmy tytuł MS Gold Partner</a></li>
  63. <li><strong>08.24.09</strong> <a href="#">Audyt oprogramowania w NFZ </a></li>
  64. <li><strong>08.20.09</strong> <a href="#">Cras lobortis lorem vestibulum</a></li>
  65. </ul>
  66. </div>
  67. <div class="clearfix"></div>
  68. </div>
  69. </div>
  70. <?php //get_sidebar(); ?>
  71.  
  72. <?php get_footer(); ?>


I jak wstawiam
  1. <?php the_title(); ?>
  2. <?php the_content(); ?>


To wszędzie mam albo jeden rekord, albo w rzędach mam 2 identyczne rekordy (IMG:style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
vokiel
post
Post #4





Grupa: Zarejestrowani
Postów: 2 592
Pomógł: 445
Dołączył: 12.03.2007

Ostrzeżenie: (0%)
-----


Przydadzą Ci się pewnie ściągi do WordPressa. Tu masz małą listę (IMG:style_emoticons/default/winksmiley.jpg)
http://speckyboy.com/2009/06/17/14-essenti...n-cheat-sheets/

Pobieranie postów robi się w pętli:
  1. < ?php if(have_posts()) : ?>
  2. < ?php while(have_posts()) : the_post(); ?>
  3. // Custom HTML & PHP code
  4. < ?php endwhile; ?>
  5. < ?php else : ?>
  6. < ?php endif; ?>


Ewentualnie:
  1. < ?php query_posts(showposts=3'); ?> // 3 posty
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 14:43