Title: content data path
Last modified: August 19, 2016

---

# content data path

 *  [DPoncy](https://wordpress.org/support/users/dponcy/)
 * (@dponcy)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/content-data-path/)
 * This may be a dumb php newbie question, but how can I get a path to the content.
   I don’t need the actual content, just the path for a javascript call.
 * Any help would be greatly appreciated

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/content-data-path/#post-1755682)
 * There isn’t “a path”. The post content is pulled from the database.
 *  Thread Starter [DPoncy](https://wordpress.org/support/users/dponcy/)
 * (@dponcy)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/content-data-path/#post-1755690)
 * Is there a way to fake a path. I have tried to put a wordpress loop in a file
   called “chapter.php” and then used it like this:
 * `
    var bookData = { getComponents: function () { return [ "<?php bloginfo('template_url');?
   >/chapter.php" ]; }, getContents: function () { return [ { title: "<?php the_title();?
   >", src: "<?php bloginfo('template_url'); ?>/chapter.php" } ] }
 *  <p>But the php functions aren’t recognized.</p>
    <p>This code wasn’t designed
   for dynamic data and I am trying to adapt it.`

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

The topic ‘content data path’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [DPoncy](https://wordpress.org/support/users/dponcy/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/content-data-path/#post-1755690)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
