tanjilahsan
Forum Replies Created
-
I solved this problem by transferring add-ons input fields to the archive product thumbnails…..:)
Forum: Plugins
In reply to: [WooCommerce] Some files corruted in woocommerce.2.1.7.zipHi lorro,
I downloaded another zip file of same size from https://www.woothemes.com/woocommerce/ and it has been extracted without corrupts!!… ??
Also I think you specified another effective way to solve my problem.
Thanks for the reply.Thank you for your afford.
But still I got nothing. I printed the $file_link variable and got empty!opps! I got a typing mistake on the last of the 2nd line, which is an extra
?>
please ignore that.
Thank youHere is an example of my code:
<?php $posts = get_posts("category=14&numberposts=5&offset=0"); ?> if( $posts ) : ?> foreach( $posts as $post ) : setup_postdata( $post);?> <div class="music01_details leftmargin"> <h2><?php the_title(); ?><h2> <?php $post_id=get_the_ID(); $file_link=wp_get_attachment_url($post_id); ?> <a href="<?php echo $file_link;?>">Download</a> <?php endforeach; endif;?>
One thing I found on WP codex…
The $id of wp_get_attachment_url( $id ) which is attachment id. But don’t know how to get an attachment id. Somewhere else I found that, this $id is post id. Then I tried with $post_id. But got nothing…..:(Dear esmi,
Every time I tried from inside the loop and also tried with parameters.