Commit c9dc9cf4 authored by numeroteca's avatar numeroteca

#2 y #7 Convierte a unidireccional la relacion Quién -> Organización

parent d7b08f65
......@@ -19,6 +19,8 @@ $pertenece = get_post_meta( $post_id, '_pods_pertecene', true );
$pertenece_id = array_values($pertenece); //gets id of organization it belongs to
$web_user = get_post_meta( $post_id, '_pods_web_user', true );
$web_user_id = $web_user[0]; //gets id of web user
$entity_type = get_the_terms( $post_id, 'user-type', ' ', ', ', '' );
$entity_type_simple = $entity_type[0]->slug;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
......@@ -86,7 +88,19 @@ $web_user_id = $web_user[0]; //gets id of web user
?></dd>
</dl>
<h2>Organizaciones/Personas a las que pertenece <?php echo $tit; ?></h2>
<?php
if ( "colectivo" == $entity_type_simple ) { //tipo de entidad colectiva
echo '<h2>Personas que pertenecen a '. $tit .'</h2>';
} else { //tipo de entidad individual "individual" == $entity_type
echo '<h2>Organizaciones a las que pertenece '. $tit .'</h2>';
}
?>
<!-- The Loop of entidades-->
<div class="quienes">
......@@ -100,7 +114,7 @@ $web_user_id = $web_user[0]; //gets id of web user
$my_query = new WP_Query($args);
$wp_count = $my_query->post_count;
if ($my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
......
This diff is collapsed.
......@@ -158,6 +158,10 @@ h2.subsection span {
margin-bottom: 0px;
}
.single-entidad .author-box, .single-entidad .default-wp-page { /* TODO: remove in the php function */
display:none;
}
/* Basic h sizes */
h1 {
font-size:42px !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment