Title: PHP code in WordPress pages in posts
Last modified: September 3, 2016

---

# PHP code in WordPress pages in posts

 *  [nene](https://wordpress.org/support/users/wpdreamer/)
 * (@wpdreamer)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-pages-in-posts/)
 * I wanted to make a **page** with a list of all categories listed in alphabetical
   order. With the help of your plugin I did just fine.
 * `<?php wp_list_cats('sort_column=name&sort_order=asc'); ?>` worked
 * but `<?php the_tags(); ?>` doesn’t work,
    neither `<?php the_tags('<ul><li>','
   </li><li>','</li></ul>'); ?>`
 * `<?php the_time('l, F jS, Y') ?>` and `<?php echo '<p>Hello World</p>'; ?>` –
   works too 🙂
 * but no success for the tags code…
 * Any ideas?
 * Thank you for the plugin, hope for further development.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * (@alexander_fuchs)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-pages-in-posts/#post-7900724)
 * I am not really sure why `<?php the_tags(); ?>` is not working, but I guess the
   function is not available for execution in shortcodes.

Viewing 1 replies (of 1 total)

The topic ‘PHP code in WordPress pages in posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-everywhere_5f7aae.svg)
 * [PHP Everywhere](https://wordpress.org/plugins/php-everywhere/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-everywhere/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-everywhere/)
 * [Active Topics](https://wordpress.org/support/plugin/php-everywhere/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-everywhere/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-everywhere/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexander_fuchs/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/php-code-in-wordpress-pages-in-posts/#post-7900724)