pamsillah
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy Images] Dispalying full size images instead of thumbnailshi @aircut. i dont know if u found a solution, but just go to your function.php file. in there add an image size that you want like this:
add_image_size('custom_tax_size',800, 600, true);
where 800 is the width and 600 is the height.
then simply call the image size like so:
<?php esc_url( get_term_link( $termitem, $termitem->taxonomy ) );?>" <?php wp_get_attachment_image( $termitem->image_id, 'custom_tax_size' ); echo $termitem->image_id; ?>
in other words, replace the ‘detail’ parameter with the name of your image size.
Forum: Plugins
In reply to: [Taxonomy Images] Pull image another way besides apply_filters ?@nicole2292 the hide_empty attribute seems not to work with this plugin, or is it just my end?
Forum: Fixing WordPress
In reply to: Upload images to custom database table in admin backendOk. I changed it to if`(! isset($_POST[‘submit’]) ) {
add_user(); `and im getting this:
Warning: file_get_contents(): Filename cannot be empty in C:\xampp\htdocs\wordpress\wp-content\themes\themename\functions.php on line 31
Array ( [error] => Empty filename ) debug01=1i don’t understand why its saying the filename is empty though?
Forum: Fixing WordPress
In reply to: Upload images to custom database table in admin backendThe search on the source of the page returns nothing as well. However if i add an
else
statement after the ifisset
like so:if( isset($_POST['submit']) ) { add_user(); } else{ echo "Could not upload user details"; }
the string is echoed back in the FRONTEND of my site.
Forum: Fixing WordPress
In reply to: Upload images to custom database table in admin backendThat doesn’t return anything at all. ??
Forum: Themes and Templates
In reply to: carousel in wordpress theme is not showing the other posts<!– Home Carousel –>
<div id=”home-carousel” class=”carousel carousel-home slide” data-ride=”carousel” data-interval=”5000″>
<!– Wrapper for slides –>
<div class=”carousel-inner” style=”margin-top:0px; background-color:transparent; height:30em;”>
<?php
$tmpX = 0;
$the_query = new WP_Query(array(
‘category_name’ => ‘Featured’,
‘posts_per_page’ => 3
));
while ($the_query->have_posts()) :
$the_query->the_post();
?><div class=”<?php echo($tmpX == 0 ? ‘active’ : ”) ?> item”>
<?php the_post_thumbnail(‘large’); ?>
<div class=”carousel-caption”>
“><h1><?php the_title(); ?></h1>
</div>
</div>
<?php
$tmpX++;
endwhile;
wp_reset_postdata();
?>
</div><!– Controls –>
<span><i class=”fa fa-chevron-left”></i></span>
<span><i class=”fa fa-chevron-right”></i></span>
<!– END Controls –></div>