Title: Php help &#8211; mystery code
Last modified: August 19, 2016

---

# Php help – mystery code

 *  [nickaster](https://wordpress.org/support/users/nickaster/)
 * (@nickaster)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/php-help-mystery-code/)
 * I’ve been working for 4 days on what would take 10 minutes if I knew PHP better.
   It’s really simple, I bought a theme which has some positions for ads. One of
   them is set to appear between the two parts of each entry – (where “<!– more –
   >” comes into play)
 * First of all, I want to get rid of the damn thing. Here’s the relevant code from
   my single.php page:
 *     ```
       <div class="entry">
   
       <?php $single = sdac_triple_p_ad_code('single');?>
   
       <?php the_content(''. $single.''); ?>
       <?php edit_post_link();?>
       <div class="tagzone">
       <p class="tags"><span>Categorized:</span> <?php the_category(', ') ?><span class="sep">|</span><?php if (function_exists('sharethis_button')) { sharethis_button(); } ?></p>
       </div>
       </div>
       ```
   
 *  That second line with the ‘sdac’ variable is obviously pulling the ad. But if
   I delete that line, not a blasted thing happens. Why? What in the world is it
   doing if it makes no difference if it’s there or not?
 * The source of that actual variable is coming from a custom widget. I can paste
   that too, but it would be great if someone could first decifer why in the name
   of god nothing whatsoever happens when I delete the line.
 * Many thanks!

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/php-help-mystery-code/?output_format=md)
[1](https://wordpress.org/support/topic/php-help-mystery-code/?output_format=md)
2

 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/php-help-mystery-code/page/2/#post-1223189)
 * > So… regardless of how you construct the single.php page, as long as that plugin
   > is active, it’s going to insert the code?
 * Yes.
 * > And again, why wouldn’t removing/editing that stop the plugin from affecting
   > posts?
 * I would have to examine the entire code for that.
 * Peter

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/php-help-mystery-code/?output_format=md)
[1](https://wordpress.org/support/topic/php-help-mystery-code/?output_format=md)
2

The topic ‘Php help – mystery code’ is closed to new replies.

 * 16 replies
 * 3 participants
 * Last reply from: [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/php-help-mystery-code/page/2/#post-1223189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
