Title: Plugin appearing in every page
Last modified: August 18, 2016

---

# Plugin appearing in every page

 *  [taz72](https://wordpress.org/support/users/taz72/)
 * (@taz72)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/plugin-appearing-in-every-page/)
 * I am really new to writing plugins, but I am busy writing a plugin and it works
   fine, except it appears in every page. I am using the ‘the_content’ hook. Is 
   there a way of only producing the output depending on the page slug?

Viewing 1 replies (of 1 total)

 *  Thread Starter [taz72](https://wordpress.org/support/users/taz72/)
 * (@taz72)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/plugin-appearing-in-every-page/#post-640462)
 * I also just noticed it replicates itself in every post… this is what my plugin
   looks like:
 * <?php
    /* Plugin Name: wp-realtor Plugin URI: [http://www.estateagencies.co.za/](http://www.estateagencies.co.za/)
   Description: This is the plugin to display the listings you have uploaded to 
   estateagencies.co.za. Author: Darren Morrisby Version: 1.0 Author URI: [http://www.bizability.co.za/](http://www.bizability.co.za/)*/
 * // This section calls the estateagencies API
    include(“estateagencies_api.php”);
 * function show_my_listings() {
 *  show_listings(“For Sale”, “1”, “130”, “100”, “130”, “100”);
 * }
 * add_action(‘the_content’, ‘show_my_listings’);
 * ?>

Viewing 1 replies (of 1 total)

The topic ‘Plugin appearing in every page’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [taz72](https://wordpress.org/support/users/taz72/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/plugin-appearing-in-every-page/#post-640462)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
