{"id":56111,"date":"2017-01-25T21:41:30","date_gmt":"2017-01-25T21:41:30","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/el-portafolio-de-mi-plantilla-no-funciona\/"},"modified":"2017-01-25T21:41:30","modified_gmt":"2017-01-25T21:41:30","slug":"el-portafolio-de-mi-plantilla-no-funciona","status":"publish","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/el-portafolio-de-mi-plantilla-no-funciona\/","title":{"rendered":"El portafolio de mi plantilla no funciona,"},"content":{"rendered":"<p>Buen dia gente, <\/p>\n<p>He estado editando una pagina para un trabajo(printhya.com), he conseguido un tema gratis muy bueno, pero al momento de querer entrar en los temas del portafolio me da error, al dar clic en cualquier elemento del portafolio no me envia a la pagina que, t\u00e9cnicamente, me deber\u00eda enviar, solo le agrega un # a la url (printhya.com\/#).<br \/>\nNo se mucho de programaci\u00f3n pero pens\u00e9 que el problema podr\u00eda estar el el php de la secci\u00f3n, de pronto en esta parte <a href=\"#\"><\/a> <\/p>\n<p>Como les digo no se mucho de programaci\u00f3n as\u00ed que no se como corregirlo, si alguien puede ayudarme&#8230; gracias<\/p>\n<p>&lt;?php<br \/>\n\/**  section menu control by id.<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; *\/<\/p>\n<p>$section_menu = zels_get_option(&#8216;portfolio&#8217;);<br \/>\n$id = strtolower(str_replace(&#8216; &#8216;, &#8216;-&#8216;, $section_menu[&#8216;name&#8217;]));<br \/>\n ?&gt;<\/p>\n<p>&lt;!&#8211; portfolio Section &#8211;&gt;<br \/>\n&lt;section id=\u00bb&lt;?php echo esc_attr($id ); ?&gt;\u00bb class=\u00bbsection-padding\u00bb&gt;<br \/>\n\t\t&lt;h2 class=\u00bbsection-title \u00ab&gt;&lt;?php echo esc_html(zels_get_option(&#8216;portfolio_section_title&#8217;)); ?&gt;&lt;\/h2&gt;<br \/>\n\t\t&lt;div class=\u00bbsection-details text-center\u00bb&gt;<br \/>\n\t\t\t&lt;?php echo wp_kses_post(zels_get_option(&#8216;portfolio_section_des&#8217;)); ?&gt;<br \/>\n\t\t&lt;\/div&gt;<br \/>\n\t\t&lt;div id=\u00bbportfolio-container\u00bb class=\u00bbportfolio-container\u00bb&gt;<br \/>\n\t\t\t&lt;div class=\u00bbportfolioFilter\u00bb&gt;<br \/>\n\t\t\t\t&lt;button data-filter=\u00bb\u00bb class=\u00bbcurrent\u00bb&gt;All&lt;\/button&gt;<br \/>\n\t\t\t\t&lt;?php<br \/>\n\t\t\t\t\t$filters = get_terms( &#8216;portfolio-category&#8217;);<br \/>\n\t\t\t\t\tforeach ($filters as $filter) {<br \/>\n\t\t\t\t\t\techo \u00ab&lt;button data-filter=\\\u00bb.$filter-&gt;slug\\\u00bb&gt;$filter-&gt;name&lt;\/button&gt;\u00bb;<br \/>\n\t\t\t\t\t} ?&gt;<br \/>\n\t\t\t&lt;\/div&gt; &lt;!&#8211; \/.portfolioFilter &#8211;&gt;<\/p>\n<p>\t\t\t&lt;div id=\u00bbportfolio-item\u00bb class=\u00bbportfolio-item\u00bb&gt;<br \/>\n\t\t\t\t&lt;?php query_posts(&#8216;post_type=portfolio&#8217; ); if(have_posts()) : while(have_posts()) : the_post(); <\/p>\n<p>\t\t\t\t$terms = wp_get_post_terms(get_the_ID(), &#8216;portfolio-category&#8217;, true );<br \/>\n\t\t\t\t$t = $trm_name = array();<br \/>\n\t\t\t\tforeach($terms as $term)<br \/>\n\t\t\t\t\t$t[] = $term-&gt;slug;<br \/>\n\t\t\t\t\t$trm_name[] = $term-&gt;name;<\/p>\n<p>\t\t\t\t$galleries = get_post_meta( get_the_ID(), &#8216;_portfolio_settings&#8217;, true );<br \/>\n\t\t\t\t$images = $galleries[&#8216;upload_gallery&#8217;];<br \/>\n\t\t\t\t$ids = explode( &#8216;,&#8217;, $images );<\/p>\n<p>\t\t\t\tforeach ( $ids as $id ) {<br \/>\n\t\t\t\t\t$attachment = wp_get_attachment_image_src( $id, &#8216;full&#8217; );<br \/>\n\t\t\t\t\t$item_meta = wp_prepare_attachment_for_js($id);<\/p>\n<p>\t\t\t\t\t$img_caption = \u00bb;<br \/>\n\t\t\t\t\tif ( ! empty( $item_meta[&#8216;caption&#8217;] ) ) {<br \/>\n\t\t\t\t\t\t$img_caption .= $item_meta[&#8216;caption&#8217;];<br \/>\n\t\t\t\t\t} else {<br \/>\n\t\t\t\t\t\t$img_caption .= $item_meta[&#8216;title&#8217;];<br \/>\n\t\t\t\t\t}<\/p>\n<p>\t\t\t\t?&gt;<br \/>\n\t\t\t\t&lt;div class=\u00bbitem &lt;?php echo implode(&#8216; &#8216;, $t); ?&gt;\u00bb&gt;<br \/>\n\t\t\t\t\t\t&lt;figure&gt;<br \/>\n\t\t\t\t\t\t\t<img \/>\u00bb alt=\u00bbItem 3&#8243;&gt;<br \/>\n\t\t\t\t\t\t\t&lt;div class=\u00bbitem-link\u00bb&gt;<br \/>\n\t\t\t\t\t\t\t\t<a href=\"#\"><\/a><br \/>\n\t\t\t\t\t\t\t&lt;\/div&gt;&lt;!&#8211; \/.item-link &#8211;&gt;<br \/>\n\t\t\t\t\t\t\t&lt;figcaption class=\u00bbitem-description\u00bb&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;h4 class=\u00bbitem-title\u00bb&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;?php echo esc_html($img_caption ); ?&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;\/h4&gt;&lt;!&#8211; \/.item-title &#8211;&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;span class=\u00bbitem-category\u00bb&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;?php echo implode(&#8216;, &#8216;, $trm_name); ?&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;\/span&gt;&lt;!&#8211; \/.item-category &#8211;&gt;<br \/>\n\t\t\t\t\t\t\t\t&lt;span class=\u00bbitem-like-icon\u00bb&gt;<br \/>\n\t\t\t\t\t\t\t\t\t&lt;i class=\u00bbfa fa-heart-o\u00bb&gt;&lt;\/i&gt; 26<br \/>\n\t\t\t\t\t\t\t\t&lt;\/span&gt;<br \/>\n\t\t\t\t\t\t\t&lt;\/figcaption&gt;<br \/>\n\t\t\t\t\t\t&lt;\/figure&gt;<br \/>\n\t\t\t\t\t&lt;\/div&gt;&lt;!&#8211; \/.item &#8211;&gt;<br \/>\n\t\t\t\t&lt;?php<br \/>\n\t\t\t\t}<br \/>\n\t\t\t\tendwhile; endif; wp_reset_postdata(); ?&gt;<\/p>\n<p>\t\t\t&lt;\/div&gt;&lt;!&#8211; \/.portfolio-item &#8211;&gt;<br \/>\n\t\t&lt;\/div&gt;&lt;!&#8211; \/portfolio-container &#8211;&gt;<br \/>\n\t&lt;\/section&gt;&lt;!&#8211; \/#portfolio &#8211;&gt;<br \/>\n\t&lt;!&#8211; Portfolio section End &#8211;&gt;<\/p>\n","protected":false},"template":"","class_list":["post-56111","topic","type-topic","status-publish","hentry","topic-tag-php","topic-tag-portafolio"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/56111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/56111\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=56111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}