• I noticed the in-post paging for a custom post type wasn’t working…. the tags were displayed on the screen, so I edited the post and found that the open/close tags had been converted to entities. I changed them back to the proper brackets and saved. The result is that the first nextpage tag is being rendered onscreen, but the following nextpage tags are being obeyed and counted. Was there an update in 3.4.1 that may have something to do with this?

    Thanks for any insight.

    -WCJ

Viewing 12 replies - 16 through 27 (of 27 total)
  • Guys, i hve put the code which (if ( ! function_exists( ‘ucc_add_cpts_to_pre_get_posts’ ) )) into functions.php. dunno hw to use ths code <?php
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $loop = new WP_Query(array(‘post_type’ => ‘name_of_post_type’,’paged’=>$paged)); and whr to add, plzz gimme me solution.

    Thread Starter Excitement

    (@wcjcs)

    Use the code in any location where you are querying for posts.

    querying for post mean ? i dnt hve any idea of ths, plzz hlp me.

    Thread Starter Excitement

    (@wcjcs)

    Look at the showcase.php template in the TwentyEleven theme; it has a couple of places using a custom query (lines 50-60 and 164-180) They assign all the $args to an array and then pass that array into a new instantiation of the WP_Query object. The example above includes the raw arguments, but it’s essentially the same thing. You can use the code to create your own loop in any PHP file and then operate on that loop just like any other, for example:

    $args = array('post_type'=>'POST_TYPE_GOES_HERE','paged'=>$paged);
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $loop = new WP_Query($args);
    if ($loop->have_posts()) : $loop->the_post();
        // Do whatever you want with each iteration here.
    endif;

    @wcjcs, this the template i hve install. look in to the coding and hlp me.
    my problem is custom pagination not working.
    https://www.web2feel.com/ebuy/

    Thread Starter Excitement

    (@wcjcs)

    Did you change the POST_TYPE_GOES_HERE to your post type? If not, it won’t work. I haven’t tested it, but the broken pagination is what JohnnyNT’s example code aims to fix. I’m afraid there’s not much more I can add that hasn’t already been mentioned above.

    why pagination plugins, accordion menu plugins, and some other plugins are not working in wordpress 3.4.1
    what is the best version to support all plugins in wordpress

    what is the best version to support all plugins in wordpress?

    vivekvsa The best version is ALWAYS the latest version which is now 3.4.2. Also if you have a WordPress problem or support question open your own thread.

    thanks….and could you please ellaborate

    Code Metic

    (@noemermidagmailcom)

    Hello guys sorry for interuption.

    Using this code

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. ]

    $statuslabels = array(
    'name' => _x( 'Status', 'taxonomy general name', 'contempo' ),
    'singular_name' => _x( 'Status', 'taxonomy singular name', 'contempo' ),
    'search_items' => __( 'Search Statuses', 'contempo' ),
    'popular_items' => __( 'Popular Statuses', 'contempo' ),
    'all_items' => __( 'All Statuses', 'contempo' ),
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => __( 'Edit Statuses', 'contempo' ),
    'update_item' => __( 'Update Statuses', 'contempo' ),
    'add_new_item' => __( 'Add New Status', 'contempo' ),
    'new_item_name' => __( 'New Status Name', 'contempo' ),
    'separate_items_with_commas' => __( 'Separate Statuses with commas', 'contempo' ),
    'add_or_remove_items' => __( 'Add or remove Status', 'contempo' ),
    'choose_from_most_used' => __( 'Choose from the most used Statuses', 'contempo' )
    );
    register_taxonomy( 'status', 'listings', array(
    'hierarchical' => false,
    'labels' => $statuslabels,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => array( 'slug' => 'status' ),
    ));
    
    function status() {
    global $post;
    global $wp_query;
    $terms_as_text = strip_tags( get_the_term_list( $wp_query->post->ID, 'status', '', ', ', '' ) );
    echo $terms_as_text;
    }

    I successfully registered custom taxonomy in admin->post sidebar.
    However it generates input text.
    Does anyone knows to turn input[‘text’] from taxonomy box to dropdown selection.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Hello guys sorry for interuption.

    Please start your own topic with your own details. This one has been marked resolved already.

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Updated to 3.4.1 and custom post type pagination seems amiss…’ is closed to new replies.