Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • kiran kola

    (@kola-kiran)

    It is not working

    need to remove

    function footer()
    {
    //echo script
    }

    Line also

    Thread Starter kiran kola

    (@kola-kiran)

    I resolved it

    here is the code

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <ul class="servcslst" style="margin-bottom:50px;" >
     <li style="border-bottom: 1px solid black;"><strong style="">SERVICES OFFERED
        <?php
    
             $args = array(
    	'posts_per_page'  => 100,
    	'numberposts'     => 100,
    	'orderby'         => 'menu_order',
    	'order'           => 'ASC',
    	'post_type'       => 'services',
    	'post_status'     => 'publish'
    	 );
    
            $lastposts = get_posts($args);
    
            foreach($lastposts as $post) :
            setup_postdata($post); ?>
    
            <li<?php if ( $post->ID == $wp_query->post->ID ) { echo ' id="current"'; } else {} ?>>
    
                <a>"><?php the_title(); ?></a>
    
        <?php endforeach; ?>
Viewing 2 replies - 1 through 2 (of 2 total)