Title: Problem displaying Links
Last modified: August 18, 2016

---

# Problem displaying Links

 *  [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/)
 * I have a modified WP install where I’m using php to call each individual category
   and/or page by it’s number.
 * Well I have a file called links.php that contains the following:
 * <?php
    $_GET[‘page_id’] = “12”; include “all.php”; ?>
 * it called page 12 which contains the following:
 * < ?php get_links_list(‘name’); ?>
 * Using a different theme than I have now, it would show my links list as if it
   were the only thing on the page. Using my new theme, it doesn’t wish to work 
   any longer… does anyone know why this would work in one theme but not another?
 * the address is [http://www.jamesmeister.com/main/links.php](http://www.jamesmeister.com/main/links.php)
 * Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217799)
 * Is that code in your Page’s content or in the Page template? (also there is a
   space between the first “<” and “?”)
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217801)
 * it’s in the page content I didn’t put it in the page template because I have 
   other pages that use it
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217804)
 * Normally PHP code included in “content” doesn’t run; you need a plugin for that.
   Search for RunPHP or PHPexec.
 * Edit. There is also a plugin for Links page:
    [http://wordpress.org/support/topic/32956](http://wordpress.org/support/topic/32956)
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217823)
 * I’ve used PHPexec and RunPHP and both do not work.
 * yes, WP is trying to break the PHP by adding that space but the plugins are not
   helping fix that problem.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217824)
 * As a second thought: isn’t your method of creating a Links Page a little bit 
   over-complicated?
    WP recognizes as _theme template_ the file `links.php` if 
   you have it in your theme. So, creating a template which has only the call for
   the links list in it, and then cerating a Page using this template would result
   in a Links page.
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217883)
 * What’s confusing me the most, is that the original links page worked in one theme,
   but when I changed themes, it broke.
 * I’m using a Links-Page plugin but it’s doing something VERY bad with the LI’s
   and it doesn’t put category headers above the groups in the “all” mode.
 * Is there an update for this plugin?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217884)
 * 1. _What’s confusing me the most, is that the original links page worked in one
   theme, but when I changed themes, it broke._
 * If a certain template exists only in ONE theme, switching themes will cause troubles
   🙂
 * 2. Which plugin? The one I linked to above? I don’t know… I am not using it.
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217888)
 * Also, I’ve specified a 
    tage for between the URL and Descrip, but it refuses
   to insert one, and ideas?
 *  Thread Starter [JamesM](https://wordpress.org/support/users/righton/)
 * (@righton)
 * [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217905)
 * Status: FIXED! 🙂
 * I took the index.php that called the page content and removed the call for posts
   and replaced it with this:
    -  <?php get_links_list(); ?>
 * then I made a page with this as a template file and it’s working now!
 * Thanks guys!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Problem displaying Links’ is closed to new replies.

 * 9 replies
 * 2 participants
 * Last reply from: [JamesM](https://wordpress.org/support/users/righton/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/problem-displaying-links/#post-217905)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
