• Resolved NicheLabs

    (@allennichelabs)


    I’m using this with custom post types. I have a list of staff members. It displays fine and shows the Alphabetic Pagination at the top.

    When I click on a letter only those staff members whose last name begin with that letter are shown, works great.

    However I just noticed that my footer information disappears when selecting a letter.

    I’m pulling content from a WP Page using $recent = new WP_Query(“pagename=footer”);

    This works on every other page but for some reason it is unable to find the page when displaying results from the Alphabetic Pagination.

    Any clues as to why?

    https://www.ads-software.com/plugins/alphabetic-pagination/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter NicheLabs

    (@allennichelabs)

    Nevermind, you can mark this as resolved.

    I changed it to use the following instead of WP_Query and it works now.

    $footerPg = get_page_by_title( 'Footer', OBJECT, 'page' );
    echo $footerPg->post_content;
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Hi,

    You did well. In fact, to filter the results of your taxonomy, i have to alter the main query. And it is recommended to use main query once. Many times people get this problem when they try to use WP_Query more than once.

    Thanks,
    Fahad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Breaks My Footer’ is closed to new replies.