Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Forum: Hacks
    In reply to: Custom Taxonomy Pagination
    Thread Starter Shihab Malayil

    (@shihabmalayil)

    Thank you bagwis,
    iam trying…

    Thread Starter Shihab Malayil

    (@shihabmalayil)

    hI Archie,

    Still single page not working.
    when i click the link it’s going home page without content.

    This is my single-special_offers.php

    
    <?php
    $wp_querty = new WP_Query( array(
    'post_type'    => 'special_offers' //you custom post name
    ,'post_status'  => 'publish'
    ) );?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php the_title();?>
    <?php endwhile; else: ?>
    <?php endif; ?>
    
    

    is it correct ?.

    -Thank you-

    Thread Starter Shihab Malayil

    (@shihabmalayil)

    Hi Archie,
    “I usually keep the post type script separate and simply call it in the functions.php “

    I also same path. (include)

    I put the code which you give me, in my single-custompage.php

    How can i mention single-custompage.php is dedicated to the post.
    like functions.php page

    -Thank You-

    Thread Starter Shihab Malayil

    (@shihabmalayil)

    Hi, Archie,
    Thank you for your replay.I can’t install external plugins.
    can you please, how can i show the post as single ?.

    Shihab Malayil

    (@shihabmalayil)

    This is my code…repeating content after post.
    How can i solve this problem?
    please help

    (theme Page) for showing content of wordpress page
    //
    <?php if(have_posts()):
    while(have_posts()): the_post(); ?>
    <h1><?php the_title();?></h1>
    <p><?php the_content();?></p>
    <?php endwhile;
    else :
    endif;?>
    //

    (WP Page) for showing wordpress post

    //
    <?php query_posts(‘cat=4&showposts=8’); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_title()?>
    <?php the_excerpt();?>
    <?php endwhile; endif; ?>
    //

    thanks
    Sh!hab

    Shihab Malayil

    (@shihabmalayil)

    This is my code…repeating content after post.
    How can i solve this problem?

    (theme Page) for showing content of wordpress page
    //
    <?php if(have_posts()):
    while(have_posts()): the_post(); ?>
    <h1><?php the_title();?></h1>
    <p><?php the_content();?></p>
    <?php endwhile;
    else :
    endif;?>
    //

    (WP Page) for showing wordpress post

    //
    <?php query_posts(‘cat=4&showposts=8’); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_title()?>
    <?php the_excerpt();?>
    <?php endwhile; endif; ?>
    //

    thanks
    Sh!hab

    Shihab Malayil

    (@shihabmalayil)

    hI slaveek, it’s not working for me.any other option ?.

Viewing 7 replies - 16 through 22 (of 22 total)