jolaya
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Thanks a lot, for some reason I had commented out the get_footer() function in my page file.
I am having the same issue here is the link to the page:
- This reply was modified 7 years, 7 months ago by jolaya.
Forum: Plugins
In reply to: [Embed Webmap] Javascript errors stopping map from displayingHi @deepwebdesign try using the ID of a web map. I was having the same issue and it was because I was using the ID of the web mapping application
Forum: Fixing WordPress
In reply to: WP_Query does not recognize the categoryI am trying to have the variable passed on the shortcode call like:
[portfolio_tiles categories=”11″]
I also used the following code to try figure it out:
function portfolio_shortcode($atts, $content, $tag) { $values = shortcode_atts(array('categories' => ''), $atts); $cat = $values['categories']; $args = array( 'post_type' => 'project', 'cat' => $cat); $output = '<div class="portfolio">'; $query = new WP_Query( $args ); if ( $query->have_posts() ){ while ( $query->have_posts() ) : $query->the_post(); $page_img = get_the_post_thumbnail(); $output .= '<div class="portfolio-project">'; $output .= '<a href="' . get_permalink() . '">'; $output .= '<div class="portfolio-project-img">' . $page_img . '</div>'; $output .= '<div class="portfolio-project-overlay">'; $output .= '<div class="portfolio-project_name portfolio-project-info"><h5>' . get_post_meta( get_the_ID(), 'project_name', true) . '</h5></div>'; $output .= '<div class="portfolio-project-info"><h6>' . get_post_meta( get_the_ID(), 'location', true) . '</h6></div>'; $output .= '<div class="portfolio-project-info"><h6>' . get_post_meta( get_the_ID(), 'client', true) . '</h6></div>'; $output .= '<div class="see-more"> See More </div>'; $output .= '</div>'; $output .= '</a>'; $output .= '</div>'; endwhile; $output .= '</div>'; } return $output; } add_shortcode('portfolio_tiles', 'portfolio_shortcode');
Forum: Plugins
In reply to: [Insert Html Snippet] HTML Snippets not found in control panelThanks!
Viewing 5 replies - 1 through 5 (of 5 total)