harrishcl
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: really static] Best Plgun Better than Wp-Cachewhere i save the static html file , i cant see on my ftp , plugins is working .showing the list . to save html and images . but i m able to see on the server . please help
Forum: Plugins
In reply to: How to build an image related post pluginfunction code inside the plugin ?
$output .= ‘# ‘;
to
$output .= ‘# ‘.postimage(‘thumbnail’);Or Function.php code .
Forum: Plugins
In reply to: How to link Static Page to Specfic Categoryperfect
thanks
Forum: Plugins
In reply to: How to build an image related post pluginok i remove the postimage from the single.php ,,, and Yes i changed the Ouput thing thru the Plugin editor wp_related_posts.php (i have a backup).
The 10 same images is the result for changing the output.
Forum: Plugins
In reply to: How to build an image related post pluginSingle Post (single.php) with <?php postimage(‘thumbnail’); ?>
<?php get_header(); ?> <div id="content"><div id="content-inner"> <?php get_sidebar(); ?> <div id="maincol"> <div class="col-inner"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="post-title"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> </div> <div class="entry"> <?php the_content(''.__('Read the rest of this entry <span class="meta-nav">»</span>', 'sandbox').''); ?> <?php link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> <?php edit_post_link(__('Edit', ''), "- <span class=\"edit-link\">", "</span>"); ?> </div> <?php wp_related_posts();?> <?php postimage('thumbnail'); ?> <?php comments_template(); ?> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> </div><!-- .post --> </div> </div><!-- #maincol --> </div></div><!-- #content --> <?php include (TEMPLATEPATH . '/extra.php'); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: How to build an image related post pluginhere is my function.php
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Left Column', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="sidebartitle">', 'after_title' => '</h2>', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Right Column', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="sidebartitle">', 'after_title' => '</h2>', )); // Search function widget_zone_out_search() { ?> <?php } if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('Search'), 'widget_zone_out_search'); function postimage($size=medium) { if ( $images = get_children(array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'numberposts' => 1, 'post_mime_type' => 'image',))) { foreach( $images as $image ) { $attachmenturl=wp_get_attachment_url($image->ID); $attachmentimage=wp_get_attachment_image( $image->ID, $size ); $imagelink=get_permalink($image->post_parent); echo '<a href="'.$imagelink.'">'.$attachmentimage.apply_filters('the_title', $parent->post_title).'</a>'; } } }
And i also added
$output .= ‘
- ‘;
to
$output .= ‘ - ‘.postimage(‘thumbnail’);
Can u add me harrishcl @ gmail .com / hotmail . com
Forum: Plugins
In reply to: How to build an image related post pluginit look like this
https://bbarms.com/blog/airsoft-mkii-m249-saw-machine-gun-ak/that My Single Post code
<?php get_header(); ?> <div id="content"><div id="content-inner"> <?php get_sidebar(); ?> <div id="maincol"> <div class="col-inner"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="post-title"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> </div> <div class="entry"> <?php the_content(''.__('Read the rest of this entry <span class="meta-nav">»</span>', 'sandbox').''); ?> <?php link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'sandbox'), "</div>\n", 'number'); ?> <?php edit_post_link(__('Edit', ''), "- <span class=\"edit-link\">", "</span>"); ?> </div> <?php wp_related_posts(); postimage('thumbnail') ; ?> <?php comments_template(); ?> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> </div><!-- .post --> </div> </div><!-- #maincol --> </div></div><!-- #content --> <?php include (TEMPLATEPATH . '/extra.php'); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: How to build an image related post pluginHere is my blog
https://bbarms.com/blog/speed-loader-airsplat/
As you can see the “Customers Who Viewed This Item Also Viewed”
I used the plugin : https://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/What i need is Post Pictures in front of Similar Post Titles
Example
Customers Who Viewed This Item Also Viewed
(POST PIC) — ( SIMILAR POST TITLE)Forum: Plugins
In reply to: How to build an image related post pluginPlease explain more.
Forum: Plugins
In reply to: [Plugin: Hot Linked Image Cacher] HOWTO: change cache folderif i want to remove the website address from where it fetches . how can i do that.
suppose the image from amazon.com/sadasd.jpg
after
it save that images with this link : https://www.mywebsite.com/images/amazon.com/sadasd.jpg
- ‘;