Tagged Questions
2
votes
1answer
25 views
nowplaying.include.php Will Not Display Results
Cyberchimps.com recommended I post here as they believed there may be a global issue with my request. I thought what I was missing was obvious and simple, but two months into this and being referred ...
0
votes
2answers
32 views
Post's ID pattern?
Each post has an ID and I would like to know how they were assigned. Is there a pattern? Why are the ID's not being incremented by 1 every posts? It would be easier..My ID's go from 9867, to 9869, to ...
0
votes
1answer
20 views
Wordpress blog set up
I plan to launch my website with multiple blogs plugged into it, with a main index page for all posts.
I currently have the index running from the root and two blogs running within their own folders ...
0
votes
1answer
20 views
Why does abstracting html from plugin code result in loss of access to wordpress functions?
When defining the callback that produces the HTML content for an admin settings page, I'd like to abstract the HTML into a separate file, but the HTML uses some wordpress functions, specifically ...
0
votes
2answers
70 views
Including a PHP file via a function that is part of a plugin?
I struggled with this all day, and now am here...
I have a contact form generated by including a php. Presently, I have this code in my theme's index.php to include it:
if ( is_page('contact') ) {
...
2
votes
1answer
318 views
integrating external php library into wordpress- the right way
If I were to load a custom library into wordpress, what would be the best place to add it?
Since there are a bunch of global vars defined at the top of the library, I would not want that to be done ...
-1
votes
1answer
41 views
Incorporate a php snippet in an include snippet [closed]
I'm not very apt at PHP so please forgive my question which I imagine is child's play to most of you.
I want to incorporate this snippet;
global $post; echo $post->post_name;
Into this line of ...
0
votes
1answer
95 views
Using includes in Admin options page? [closed]
I am working on a plugin and have a problem with my options page that I can't seem to figure out. The options page works just fine, it is setup in my main plugin file like this:
...
0
votes
1answer
58 views
DOCUMENT_ROOT from custom script inside theme [closed]
I am having problems getting document from a custom script inside the theme. It simple not including the domain part.
Here is the current way I am using:
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
...
0
votes
1answer
185 views
How do I call an external php non WordPress class into functions.php?
All my WordPress files are in:
/httpdocs/news/
and the classes I want to call are in:
/private/classes/
Would I use the include_once() function or is there a WordPress function? And how would I ...
0
votes
2answers
113 views
Using WP functions such as the_title() in an included php file
I'm including a php file in single.php, in the loop.
Is it possible to use WP variables such as the_title(), the_date(), etc in the included php file?
0
votes
1answer
209 views
What's the best way to include php code in to pages?
I'm currently creating a bunch of (empty) pages and performing conditionals such as is_page('Blabla') on it, which increases my page.php significantly. I'm already using require_once for different ...
2
votes
3answers
459 views
where to include a php file
I have a php file with some variables which I would like to use.
When I include it in the header.php the variables in that file are not recognized at footer.php and some other places.
Where is the ...
