Faisal Ramzan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom post type paginationhttps://noheelajewellers.com/new/
its not working above link show html pagination but i want to show dynamic i complete web site but stuck at this point please help mebelow code showing nothing
another way you know please..<?php
$paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1;$slider = new WP_Query(
array( ‘post_type’ => ‘sliders’,
‘posts_per_page’ => 3,
‘paged’ => $paged,
‘orderby’ => ‘ID’,
‘order’ => ‘ASC’ ) );
?><div class=”alignleft”><?php previous_posts_link(‘? Previous’) ?></div>
<div class=”alignright”><?php next_posts_link(‘More ?’) ?></div>Forum: Fixing WordPress
In reply to: Custom post type paginationHere is my code and i am also using it please send me complete code which i replace and thats going to show pagination at my home page.
Thank you
<?php $slider = new WP_Query(
array (
‘post_type’ => ‘sliders’,
‘posts_per_page’ => 3,
‘orderby’ => ‘ID’,
‘order’ => ‘ASC’,
)
);?>
?>Forum: Fixing WordPress
In reply to: meta boxif you dont mind i want show you my site locally by sharing screen
Forum: Fixing WordPress
In reply to: meta box<ul class=”product”>
<?php $folio_loop = new WP_Query( array( ‘service_category’ => $term->slug, ‘post_type’ => ‘services’, ‘posts_per_page’ => 4, ‘orderby’ => ‘menu_order’ ) ); ?>
<?php while ( $folio_loop->have_posts() ) : $folio_loop->the_post();
$fabric_name = get_post_meta(get_the_id(), ‘fabric_name’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fabric_no’, true);
$fabric_name = get_post_meta(get_the_id(), ‘material_name’, true);
$fabric_name = get_post_meta(get_the_id(), ‘season’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fb_weight’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fb_price’, true);
?>-
<?php the_post_thumbnail(‘fabric-thumb’);?>
<div class=”fabric_details”>
- fabric name : <span><?php echo get_post_meta($post->ID, ‘fabric_name’, true); ?></span>
- fabric no : <?php echo get_post_meta($post->ID, ‘fabric_no’, true); ?>
- material : <?php echo get_post_meta($post->ID, ‘material_name’, true); ?>
- season : <?php echo get_post_meta($post->ID, ‘season’, true); ?>
- weight : <?php echo get_post_meta($post->ID, ‘fb_weight’, true); ?>(g)
- price : <span><?php echo get_post_meta($post->ID, ‘fb_price’, true); ?></span>
<div class=”read_more”>
“>Get Details
</div>
</div><?php endwhile; ?>
this code display products on home page
Forum: Fixing WordPress
In reply to: meta box<ul class=”product”>
<?php $folio_loop = new WP_Query( array( ‘service_category’ => $term->slug, ‘post_type’ => ‘services’, ‘posts_per_page’ => 4, ‘orderby’ => ‘menu_order’ ) ); ?>
<?php while ( $folio_loop->have_posts() ) : $folio_loop->the_post();
$fabric_name = get_post_meta(get_the_id(), ‘fabric_name’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fabric_no’, true);
$fabric_name = get_post_meta(get_the_id(), ‘material_name’, true);
$fabric_name = get_post_meta(get_the_id(), ‘season’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fb_weight’, true);
$fabric_name = get_post_meta(get_the_id(), ‘fb_price’, true);
?>-
<?php the_post_thumbnail(‘fabric-thumb’);?>
<div class=”fabric_details”>
- fabric name : <span><?php echo get_post_meta($post->ID, ‘fabric_name’, true); ?></span>
- fabric no : <?php echo get_post_meta($post->ID, ‘fabric_no’, true); ?>
- material : <?php echo get_post_meta($post->ID, ‘material_name’, true); ?>
- season : <?php echo get_post_meta($post->ID, ‘season’, true); ?>
- weight : <?php echo get_post_meta($post->ID, ‘fb_weight’, true); ?>(g)
- price : <span><?php echo get_post_meta($post->ID, ‘fb_price’, true); ?></span>
<div class=”read_more”>
“>Get Details
</div>
</div><?php endwhile; ?>
this is the code that display product on home page
Forum: Fixing WordPress
In reply to: meta boxi am not using any plugin i make meta_box.php and call it on function.php
and all is going good values are storing and displaying properly but not for what i wnat…:(Forum: Fixing WordPress
In reply to: meta boxyes values are displaying properly what should i do??
Forum: Fixing WordPress
In reply to: meta boxi create a custom post type named services.php and its single-services.php and taxonomy-services_category.php
all is going good .when single page open i click on order and its redirect to form.php where i want display selected fabric name.
please let me know how it possible -
<?php the_post_thumbnail(‘fabric-thumb’);?>