Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Can you provide your website URL here to look into your DOM elements? Or you can tell me either any “div, span, p etc.” classes or id=”something here” in your page? Give your page a deep look and inform me, i will guide you.

    Thanks,
    Fahad

    Thread Starter che2p

    (@che2p)

    i just try in local not online website..
    this is litle code
    <div id=”foto-content”>
    <h4>New Catalogues</h4>

    <div id=”et_pt_blog”>

    <h2>Select by Alphabetic </h2>
    **** i want put Alphabetic Pagination in here ***

    <?php if (have_posts()) :?>
    <?php
    $args=array(
    ‘category_name’=>’architectural-tools-hardware-and-software’,
    ‘ignore_sticky_posts’=>1,
    ‘paged’=>$paged,
    //’showposts’ => 16,
    //’orderby’ => ‘rand’,
    );
    query_posts($args);
    ?>
    <div class=”clear”></div>

    <?php while (have_posts()) : the_post(); ?>

    thanks

    Thread Starter che2p

    (@che2p)

    i mean maybe like code to call function alphabetic pagination to our script themes like this

    <?php if (function_exists(‘alphabetic pagination’)) { echo alphabetic pagination(); } ?>

    or i dont know – im blind

    thanks

    che2p

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    Its simple,

    Replace your text “**** i want put Alphabetic Pagination in here ***”
    with a div
    <div id="ap-spot"></div>

    and then insert “#ap-spot” in DOM position by selection “reset” and then “custom” from there. And be sure about “Display on all lists?” option.

    Thanks,
    Fahad

    Thread Starter che2p

    (@che2p)

    this is work in categories page but nothing show in my custom page

    <?php
    /*
    Template Name: Architects Tools
    */
    ?>
    <?php get_header(); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div id="main-area-wrap" >
    	<div id="wrapper">
    		<div id="main" class="noborder">
                <div id="post-top">
                    <div class="breadcrumb">
                        <?php if(function_exists('bcn_display')) { bcn_display(); }
                        else { ?>
                            <?php esc_html_e('You are currently viewing','eNews') ?>: <em><?php the_title() ?></em>
                        <?php }; ?>
                    </div> <!-- end breadcrumb -->
                </div> <!-- end post-top -->	
    
    			<h1 class="page-title"><?php the_title() ?></h1>
    			<div class="breadcrumb_dua">Design tools, Computer, laptop, design tools, notebook, sketchbook, CAD/CAAD software, Modeling and rendering software, Interior design CAD software: 2D/3D, Joinery software, , Staircase software, Visualization software, conversion software , CAE software, Building energy analysis software,  Mapping and surveying software, HVAC, plumbing, electricalworks software, Site management software, cost estimate software, Project management software, BIM software, CAM software, Object libraries for architecture software.</div>
    			<div id="post-content"> 
    
    				<?php the_content(); ?>
    				<?php edit_post_link(esc_html__('Edit this page','eNews')); ?>
    				<?php endwhile; endif; ?>
    
    			<br class="clearfix"/>
    
    <!-- + Women who launch -->
    			<div id="foto-content">
                <h4>New Catalogues</h4>
    
    **** i want to put here and show only categori "architectural-tools-hardware-and-software"
    
    				<div id="ap-spot"></div>
    
                    <div class="clear"></div>
    
    					<div id="et_pt_blog">
    
                    <h2>Select by company name</h2>
    				<?php if (have_posts()) :?>
    				<?php
    					$args=array(
    					   'category_name'=>'architectural-tools-hardware-and-software',
    					   'ignore_sticky_posts'=>1,
    					   'paged'=>$paged,
    					   //'showposts' => 16,
    					   //'orderby' => 'rand',
    					   );
    					query_posts($args);
    				?>
    
    				<?php while (have_posts()) : the_post(); ?>
    
    	<?php 	  //$width = 160;
    		  $height = 170;
    		  $titletext = get_the_title();
    		  $thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext);
    		  $thumb = $thumbnail["thumb"]; ?>
    
    						<div class="mainpost-wrap">
    
    							<h2><a href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s','eNews'), get_the_title()) ?>"><?php truncate_title(45); ?></a></h2>							<?php if ( $thumb <> '' ) { ?>
    								<a href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s','eNews'), get_the_title()) ?>">
    									<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height); ?>
    								</a>
    							<?php }; ?>	
    
    							<!-- <p><?php //truncate_post(360); ?></p>-->
    
    						</div> <!-- end mainpost-wrap -->
    
    						<?php endwhile; ?>
    						<?php endif; wp_reset_query(); ?>
    
    					</div> <!-- end #et_pt_blog -->
    
    			</div> <!-- end post-content -->
    
    <!-- - Women who launch -->
    
    		<div id="partner-dua">
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Product Cat') ) : ?>
    		 <?php endif; ?>
    		</div>  
    
    </div> <!-- end post-content -->
    		</div> <!-- end main -->
    <?php if (!$fullwidth) get_sidebar(); ?>
    <?php get_footer(); ?>

    thanks

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Make sure that your page has more than 1 items (means list) and you have select first option “Display on all lists?” to yes.

    Thread Starter che2p

    (@che2p)

    this is page iwant to use alphabetic pagination, but ive not install the plugin
    https://www.indo-architectsplus.com/product-categories/
    option “Display on all lists?” to yes. **yes i’d.
    alphabetic pagination work well and show in this pages. but if i click A or B nothing article show there… **article is on website a and b

    thanks che2p

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Do you know that alphabetic pagination will filter your posts which will start from that selected alphabet? You mean to say you have articles start with a and b but still no results by selecting specific alphabet?

    Thread Starter che2p

    (@che2p)

    yes correct

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    May i have access inside the wp-admin for a while?
    Contact Me for insights.

    Thread Starter che2p

    (@che2p)

    i was sent to your contact.

    thanks

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Yes, i am inspecting the issue and will update you soon. Thank you for your patience.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi che2p,

    I have looked into your template page. The difference b/w my implementation and yours is that i am modifying the main query and you are writing your own query. That’s why this plugin is not working as expected. Give me some time, i will get back to you with the solution. It might will require to add some function for your case and all other custom post(s) queries. By default this plugin works with WordPress listing but in your case, it should work with your custom query.

    Thanks,
    Fahad

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    It is recommended to use get_posts() or WP_Query when your requirement is beyond default template structure.

    In this plugin, you will find a function ap_where($query). You need to pass your query to this function and it will return the appended clause for alphabetic pagination.

    global $wpdb;
     $query = "
        SELECT $wpdb->posts.*
        FROM $wpdb->posts, $wpdb->postmeta
        WHERE --YOUR WHERE CLAUSE HERE--
     ";
     //NOW YOU WILL GET RESULTS BY THIS METHOD
     $pageposts = $wpdb->get_results(ap_where($query), OBJECT);

    It will give you the freedom of applying alphabetic pagination anywhere you want other than the default template structure.

    Thread Starter che2p

    (@che2p)

    you are my hero fahad mahmood
    thanks for helping me
    you fix this error
    Fatal error: Call to undefined function ap_where() in E:\xampp\htdocs\DesainArchitects\architects\wp-content\themes\Arch-New\page-produkcat.php on line 49

    thank you faahad ?? ** good and nice person

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘ASK How to put Alphabetic Pagination in manual position’ is closed to new replies.