Title: problem with a php code
Last modified: August 21, 2016

---

# problem with a php code

 *  [mikhak](https://wordpress.org/support/users/mikhak/)
 * (@mikhak)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/)
 * hi
 * i have a problem with a php code .
 * this is my content.php files code :
 *     ```
       <?php
       /**
        *
        * content*.php
        *
        * The post format template. You can change the structure of your posts or add/remove post elements here.
        *
        * 'id' - post id
        * 'class' - post class
        * 'thumbnail' - post icon
        * 'title' - post title
        * 'before' - post header metadata
        * 'content' - post content
        * 'after' - post footer metadata
        *
        * To create a new custom post format template you must create a file "content-YourTemplateName.php"
        * Then copy the contents of the existing content.php into your file and edit it the way you want.
        *
        * Change an existing get_template_part() function as follows:
        * get_template_part('content', 'YourTemplateName');
        *
        */
       global $post;
       theme_post_wrapper(
       		array(
       			'id' => theme_get_post_id(),
       			'class' => theme_get_post_class(),
       			'thumbnail' => theme_get_post_thumbnail(),
       			'title' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
       			'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
       			'before' => theme_get_metadata_icons('date,author,edit', 'header'),
       			'content' => theme_get_excerpt(),
       			'after' => theme_get_metadata_icons('', 'footer')
       		)
       );
       ```
   
 * **i can’t insert this code in my content.php file :**
 * `<?php the_tags('Tags: ', ', ', '<br />'); ?>`
 * please help me for this problem .
 * Insert the following code at the top of the file
    content Error of was shown 
   and break me theme.
 * thanks
 * _[[bump ](http://codex.wordpress.org/Forum_Welcome#No_Bumping)moderated]_

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

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/#post-4319978)
 * Where did you put the code? Literally right at the top of the file?
 *  Thread Starter [mikhak](https://wordpress.org/support/users/mikhak/)
 * (@mikhak)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/#post-4320039)
 * after this ( last of the file ) :
 *  ‘after’ => theme_get_metadata_icons(”, ‘footer’)
    ) );
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/#post-4320040)
 * Which theme do you need help with?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/#post-4320041)
 * what theme is that?
    where is the function `theme_post_wrapper()` defined?
 * it seems you are using a _artisteer_ generated theme, which are not supported
   here in the forum.
    please ask at [http://www.artisteer.com/?forum_id=13&p=forum_topics](http://www.artisteer.com/?forum_id=13&p=forum_topics)

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

The topic ‘problem with a php code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-a-php-code/#post-4320041)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
