cman18
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: post.php wont display content and a few other thingsThank so much for the quick response!
The more I work with WordPress… The less I understand ??
I got it working by pasting the loop here:
<div class="col-sm-8 blog-main"> <article id="post-<?php the_ID(); ?>" <?php post_class("block"); ?> role="article"> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); // // Post Content here // } // end while } // end if ?> <div class="blog-post"> <h2 class="blog-post-title"><a href="<?php the_permalink(); ?>" title="Read more"><?php the_title(); ?></a></h2> <p class="blog-post-meta"><?php the_date(); ?> by <?php the_author(); ?></p> <?php ( the_post_thumbnail( 'category-thumb600' )) ?> <?php the_content(); ?> </div><!-- /.blog-post --> </article> </div><!--col-sm-8 blog-main -->
- This reply was modified 7 years, 2 months ago by cman18.
Could you explain this a bit more:
It seems you have comments in the code and your asking to paste certain pieces in different places.
includes/modules/module_modifier/td_module_blog.php lines 213-236.
Your code:if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( $this->post->ID ) ) { $buffy = ''; if ( is_single() ) { $image_html = get_the_post_thumbnail( $this->post->ID, false, array( 'class' => 'entry-thumb single-nelioefi' ) ); } else { $image_html = '<a href="' . $this->href . '">'; $image_html .= get_the_post_thumbnail( $this->post->ID, false, array( 'class' => 'entry-thumb single-nelioefi' ) ); $image_html .= '</a>'; } } else { // Here, the original code has to be placed. It starts with: $featured_image_id = get_post_thumbnail_id($this->post->ID); // And it goes on and on until: $image_html = '<a href="' . $this->href . '"> [...] </a>'; } // And right after the else block we just inserted, comes this: $buffy .= '<div class="td-post-featured-image">';
Here is what I have by defualt for lines 213 – 236
//get the full size for the popup $featured_image_full_size_src = td_util::attachment_get_src($featured_image_id, 'full'); $buffy = ''; $show_td_modal_image = td_util::get_option('tds_featured_image_view_setting') ; if (is_single()) { if ($show_td_modal_image != 'no_modal') { //wrap the image_html with a link + add td-modal-image class $image_html = '<a href="' . $featured_image_full_size_src['src'] . '" data-caption="' . htmlentities($featured_image_info['caption'], ENT_QUOTES) . '">'; $image_html .= '<img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb td-modal-image" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/>'; $image_html .= '</a>'; } else { //no_modal $image_html = '<img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/>'; } } else { //on blog index page $image_html = '<a href="' . $this->href . '"><img width="' . $featured_image_info['width'] . '" height="' . $featured_image_info['height'] . '" itemprop="image" class="entry-thumb" src="' . $featured_image_info['src'] . '" alt="' . $featured_image_info['alt'] . '" title="' . $featured_image_info['title'] . '"/></a>'; } $buffy .= '<div class="td-post-featured-image">';
Would be nice just to have the code to paste over the area vs having to chop it up.
Thanks!
Forum: Themes and Templates
In reply to: Editing Grid tempate to show first imageUpdate: Im using the featured Image template but trying to edit it to show the content of the post.
Index Example: https://tinyurl.com/ogvdhc5
The images are not hosted by my site, they are hotlinked urls from imgur.Gallery Example: https://tinyurl.com/klmefga
I want to images showing on the Index to show as thumbnails here.Thx
Forum: Plugins
In reply to: [Post Comments as bbPress Topics] There was an error with your selected topicI believe your referring to back end DB edits? Any chance you or someone else should walk me through a script to accomplish this?
Sry new to this sort of stuff.
Thx
Forum: Themes and Templates
In reply to: [Codium Grid] no images on home page postsAnyway to bypass the need to add an image as a featured image? I have hotlinks to imgur which allows me to save bandwidth and uploading each image on my site.
To my knowledge I cant set a hot linked image as a featured image.
Forum: Plugins
In reply to: [Post By Email] Post By Email – images not postingSo i realize now I have to send in links to images not attachments which sucks. If there is a fix for this I would still like to know.
Also how do I edit the Post by Email: Next Scheduled Check: Looks like its set to every 2 hours. Id like to up this to say 30 mins.