Title: Simply php code (TwentyEleven)
Last modified: August 20, 2016

---

# Simply php code (TwentyEleven)

 *  [jmixmaster](https://wordpress.org/support/users/jmixmaster/)
 * (@jmixmaster)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/)
 * I was wondering if I could simply all the php code in the following excerpt and
   just use the php functions in the Function Reference section of the codex, and
   HTML/CSS? please help.
 *     ```
       <?php
       			/* translators: used between list items, there is a space after the comma */
       			$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
   
       			/* translators: used between list items, there is a space after the comma */
       			$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
       			if ( '' != $tag_list ) {
       				$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>.', 'twentyeleven' );
       			} elseif ( '' != $categories_list ) {
       				$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
       			} else {
       				$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
       			}
   
       			printf(
       				$utility_text,
       				$categories_list,
       				$tag_list,
       				esc_url( get_permalink() ),
       				the_title_attribute( 'echo=0' ),
       				get_the_author(),
       				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
       			);
       		?>
       ```
   

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

 *  Thread Starter [jmixmaster](https://wordpress.org/support/users/jmixmaster/)
 * (@jmixmaster)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175656)
 * anyone? :/
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175658)
 * You post does not make sense.
 * `I was wondering if I could simply all the php code`
 * What does that mean?
 *  Thread Starter [jmixmaster](https://wordpress.org/support/users/jmixmaster/)
 * (@jmixmaster)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175662)
 * I don’t want to have all the utility text things. I want to use HTML to format
   the text and **just** the php short hand codes {i.e <?php echo get_permalink();?
   > }.
 *  [justinwhall](https://wordpress.org/support/users/jwind/)
 * (@jwind)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175663)
 * Still not clear as what you want to do. HTML to format what text and why?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175665)
 * > I don’t want to have all the utility text things. I want to use HTML to format
   > the text and just the php short hand codes {i.e <?php echo get_permalink();?
   > > }.
 * yes, you can do this – no problem.
 * btw:
    don’t edit twenty eleven directly; all modifications will be overwritten
   with the next upgrade of your wordpress version; and it is important to have 
   a working default theme in case of problems. consider creating a child theme 
   [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *  Thread Starter [jmixmaster](https://wordpress.org/support/users/jmixmaster/)
 * (@jmixmaster)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175667)
 * Oh i am already using a child theme haha. which php shorthand codes should i 
   use?

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

The topic ‘Simply php code (TwentyEleven)’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [jmixmaster](https://wordpress.org/support/users/jmixmaster/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/simply-php-code-twentyeleven/#post-2175667)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
