Function not pulling image or text from custom post type

Try this way, may help you. I just fetch from a specific post ‘s image from a specific Post Type called “gameshowwarriorsw”. $gameShowWarriorsWorld = new WP_Query( ‘post_type=gameshowwarriorsw&orderby=date&order=DESC&p=371’ ); while ($gameShowWarriorsWorld->have_posts()) : $gameShowWarriorsWorld->the_post(); $postTitle = get_the_title(); $postid = get_the_id(); $postContent = get_the_content(); ?> <li> <a href=”#” onclick=”return get_inzenwarriorhero(<?php echo $postid ; ?>);”> <?php the_post_thumbnail(array(219,143)); ?> </a> … Read more

Calling an custom field from theme option at the frontend

I’m not sure how you’ve decided to save your options but if I were to guess based on the code above, you’re saving your ‘aboutBlurb’ as an index in the website_options array which I also assume you’re saving in the actual WordPress Options – website_options[about]. To get that data maybe try this: $website_options = get_option(‘website_options’); … Read more

media-uploader insert into post is not inserting

I have found the solution with this change this $html=”<input id=”” . esc_attr( ‘eo_theme_options[‘ . $id . ‘]’ ) . ‘” to this $html=”<input id=”” . esc_attr( ‘eo_theme_options_’ . $id ) . ‘” and it worked, that do the trick

Modify php code to pass a page id as a parameter in order to create a breadcrumb

I simply had to remove ‘is_page() && ‘ in both the if and the elseif function the_ajax_breadcrumb($post_id) { ob_start(); $args = array(‘page_id’ => $post_id); $the_query = new WP_Query($args); $currentBefore=”<li><a>”; $currentAfter=”</a></li>”; while ( $the_query->have_posts() ) { $the_query->the_post(); if ( !is_home() && !is_front_page() || is_paged() ) { echo ‘<nav class=”breadcrumb”><ul>’; if ( !$the_query->post->post_parent ) { echo $currentBefore; … Read more