Selaa lähdekoodia

fixed index.php

Juan Carlos 5 vuotta sitten
vanhempi
commit
ad2002cc8b
2 muutettua tiedostoa jossa 9 lisäystä ja 6 poistoa
  1. 1 1
      functions.php
  2. 8 5
      index.php

+ 1 - 1
functions.php

@@ -405,7 +405,7 @@ function save_details(){
   update_post_meta($post->ID, "mitarbeiter_email", $_POST["mitarbeiter_email"]);
   // Projekte
   update_post_meta($post->ID, "projekt_beschreibung", $_POST["projekt_beschreibung"]);
-  update_post_meta($post->ID, "projekt_link", $_POST["projekt_link"]);
+  update_post_meta($post->ID, "projekt_link", $_POST["projekt_link  "]);
 }
 
 /*

+ 8 - 5
index.php

@@ -259,11 +259,13 @@
                   <div class="col-lg-3 col-md-6 col-xs-12">
                   <figure>
 
-                  <?php if get_the_post_thumbnail_url( $posts->post->ID ): ?>
+
                   <img src="<?php echo get_the_post_thumbnail_url( $posts->post->ID, array( "width" => 255, "height" => 255 ) ); ?>" alt="<?php the_title();  ?>">
-                  <?php else:  ?>
-                  <img src="<?php echo get_template_directory_uri(); ?>/img/team/team-05.jpg" alt="">
-                  <?php endif  ?>
+                   <?php // echo get_the_post_thumbnail(  $posts->post->ID ); ?>
+                    <?php // echo the_post_thumbnail(  $posts->post->ID ); ?>
+                    <?php // echo get_the_post_thumbnail_url( $posts->post->ID, array( "width" => 255, "height" => 255 ) ); ?>
+
+                  <!-- <img src="<?php echo get_template_directory_uri(); ?>/img/team/team-05.jpg" alt="">  -->
                     <div class="image-overlay">
                       <div class="overlay-text text-center">
                         <div class="info-text">
@@ -282,7 +284,8 @@
                       </div>
                     </div>
                   </figure>
-	                  <!-- Team Item Ends -->
+                  </div>
+                  <!-- Team Item Ends -->
 
 								<?php