WordPress.org

Ready to get started?Download WordPress

Forums

WP Clone by WP Academy
Problem with wp_list_pages (4 posts)

  1. tzeldin88
    Member
    Posted 1 year ago #

    (This is a repost of my comment on another thread -- http://wordpress.org/support/topic/page-lists-menus-not-working-now/ -- because somehow my post there got messed up from backticks or code-pasting.. sorry!)

    wp_list_pages() does not work properly on my clone. Specifically, the URLs are missing from the HREF attribute in all the A tags. Here's what i get:

    <ul>
      <li class="page_item  page-item-69">
        <a href=""></a>
      </li>
    </ul>

    Any thoughts?

    http://wordpress.org/plugins/wp-clone-by-wp-academy/

  2. WP Academy
    Member
    Plugin Author

    Posted 1 year ago #

    sorry about the delay.. haven't seen this one before so I'm not sure what's going on,do you see any errors related to wp_list_pages in the php error log? would it be possible to take a look at your backup?

  3. tzeldin88
    Member
    Posted 1 year ago #

    Hi, thank so much for following up on this! I just can't figure out why this is happening.

    I don't see any related errors in the php error_log.

    I'd be happy to give you a link to the cloned version of the site, but I can't publish it here in a public forum. If you'd like to take a look, I can email you the link to my clone, as well as the url of my full backup-zip (from the original site). If you want to see, let me know what email address to send it to.

    Other things i now see about the problem:
    - In addition to the URL being missing, the linked text (between the opening and closing A tags) is also omitted.
    - A couple of my LI elements are actually ok - they have normal links. So not all LI's are bad, but most are.
    - In the LI's that are bad, the source code has an EXTRA SPACE between the two css classes listsed. There are two spaces, instead of just one space.

    Below is a larger code snippet (some LI's are removed so it's not too long). Note the extra space in the LI classes.

    <ul>
    	<li class="pagenav">Pages
    		<ul>
    			<li class="page_item page-item-20"><a href="http://test.mysite.org/about/">About the Alliance</a>
    				<ul class="children">
    					<li class="page_item  page-item-69"><a href=""></a></li>
    					<li class="page_item  page-item-460"><a href=""></a>
    						<ul class="children">
    							<li class="page_item  page-item-446"><a href=""></a></li>
    						</ul>
    					</li>
    					<li class="page_item  page-item-429"><a href=""></a></li>
    				</ul>
    			</li>
    			<li class="page_item  page-item-22"><a href=""></a>
    				<ul class="children">
    					<li class="page_item  page-item-116"><a href=""></a></li>
    				</ul>
    			</li>
    			<li class="page_item  page-item-6"><a href=""></a></li>
    			<li class="page_item page-item-8"><a href="http://test.mysite.org/events/">Events</a>
    				<ul class="children">
    					<li class="page_item  page-item-280"><a href=""></a></li>
    				</ul>
    			</li>
    			<li class="page_item  page-item-11"><a href=""></a></li>
    		</ul>
    	</li>
    </ul>
  4. WP Academy
    Member
    Plugin Author

    Posted 1 year ago #

    awesome,thanks.. please send the link to support@wpacademy.com (mention this thread) and it'd be great if you could include the link to the full backup as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic