+
-
-

-

-
-
-

- 'sponsors', 'orderby' => 'rand' ); - $the_query = new WP_Query( $args ); +
+

+

+
+
+

Спонсори

+ 'sponsors', 'orderby' => 'rand' ); + $sponsors = new WP_Query( $sponsors_args ); - if ( $the_query->have_posts() ) : - while ( $the_query->have_posts() ) : $the_query->the_post(); - if ( has_post_thumbnail() ) { - ?> - - - - -
+ if ( $sponsors->have_posts() ) : + while ( $sponsors->have_posts() ) : $sponsors->the_post(); + if ( has_post_thumbnail() ) { + ?> + + + + +
+ +
+ +
+

Новини | виж всички новини

+
+ 5, posts_per_page => 3 ); + $news = new WP_Query( $news_args ); + + if ( $news->have_posts() ) : + while ( $news->have_posts() ) : $news->the_post(); + ?> +
+

+

От | Публикувано на

+ + виж цялата новина +
+ +
+
+ +
+ +
+

Място: Интерпред, София, България

+ 'transportation' ); + $transport = new WP_Query( $transport_args ); + + if ( $transport->have_posts() ) : + while ( $transport->have_posts() ) : $transport->the_post(); + ?> +


+ +
+ diff --git a/functions.php b/functions.php index 5806db0..67a35b5 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,4 @@ __( 'Main Menu', 'initfest' ), 'footer-openfest' => __('OpenFest', 'initfest'), @@ -118,4 +117,22 @@ function create_sponsors_posttype() { add_action( 'init', create_sponsors_posttype ); + +# Create a custom post type for Tranportation +function transportation_posttype() { + + register_post_type( 'transportation', + array( + 'labels' => array( + 'name' => __( 'Tranportation' ), + ), + 'public' => true, + 'has_archive' => true, + 'rewrite' => array('slug' => 'transportation'), + ) + ); +} + +add_action( 'init', 'transportation_posttype' ); + ?>