0
votes
1answer
35 views

Make a page (url) not cacheable [closed]

How to setup a wordpress-page in wordpress as non-cacheable in wordpress? I have made up a form manually for a page(wordpress) and I want to make that page not cacheable by browsers. How can it be ...
0
votes
2answers
73 views

Display custom meta box in my template file

Need help displaying my custom meta boxes on a template file. Following a tutorial Here's the code from my functions.php: function get_custom_field( $value ) { global $post; $custom_field = ...
0
votes
0answers
44 views

Create a author subpage

I want to create a author subpage, that looks like this www.example.com/author/user/subpage I read the Wordpess codex about how to create subpages. You can link a page with another page in the page ...
0
votes
1answer
62 views

Display all pages - in order

My goal a single-page vertically-scrolling site. I'm using this code to display all the pages one after the other: <!-- All Pages --> <?php $pages = ...
1
vote
1answer
52 views

Page Automatically Generated from Theme?

I'm running WordPress multisite and would like each site to have a specific page (with pre-loaded content) generated from a page template, contact.php. Rather than go through each site and create this ...
0
votes
1answer
47 views

Display pages from specific page template

Okay I have found the following code on line, which seems to be working and displaying all of the pages using the page_library_html.php template. This code only shows the title of them though. Can ...
0
votes
1answer
46 views

How can I put a custom field as the link of a button shortcode?

I have been working on a custom page template, and cannot seem to figure out how to have a custom field for URL's as the link for a button in the loop. Here is my code <?php echo ...
0
votes
3answers
122 views

Display additional page templates and a sidebar on plugin activation

I'm developing a child-theme off of the Twenty Twelve (1.1), using Wordpress (3.5.1) and the Woocommerce plugin (1.6.6). I've noticed that the problem with creating the online shop, single product ...
6
votes
2answers
4k views

Getting only direct child pages in WordPress with get_pages

I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas? PHP Source: $args = array( 'child_of' => $post->ID, ...
0
votes
1answer
46 views

Tables not showing divs and loop/php items

I know this is an absurd questions, as who uses tables anymore? I got handed this and just need to make it work really. I don't know anything about tables so it's been a learning experience. I ...
1
vote
1answer
265 views

Changing the template hierarchy

Is there an easy way to change the WP default template hierarchy? For instance; Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
1
vote
0answers
113 views

Automatic Shortcode Creation with Custom Fields

This is basically a php issue as I'm fairly new to it and can't figure out how to code things the way I want. I am basically trying to pull information from custom fields (grid reference) and post ...
0
votes
2answers
51 views

Page template is accessing the incorrect posts?

Hi I'm attempting to create my own custom template that will have a format like this: <?php get_header(); ?> <div id="container"> <div id="top-half"> <!--fixed ...
0
votes
2answers
185 views

How do I add my PHP app to a Wordpress page whilst keeping semantic URLs?

I am rebuilding a static website for a client using Wordpress on the main domain- eg domain.com. There is also a directory of members website at directory.domain.com which I was hoping to migrate over ...
0
votes
2answers
108 views

Editing a PHP file to include a small text piece on every page

I'm building site (dummy site is up at www.teamcoding.ca/corporate) and would like to include in the upper-right hand part of the screen, "Switch to Lifestyle Site" with a link to a different site. ...
0
votes
1answer
502 views

Dynamically change Custom Post Type Template OR Change Permalink?

I have built a plugin that uses a custom post type and a single-.php file for a template. My issue is the custom post type template needs to take on the name of the post type and I need to change ...
3
votes
1answer
5k views

how to add a .php file to wordpress

I have a php file in my server (say www.example.com/up/up.php). If i access that file through the url, my site says no page found. but i want to call that php file using url parameter. I want to call ...
1
vote
1answer
545 views

How to hide all child pages with post_query?

i have a page template as start page(home.php). i use a 2 columns grid to display all pages on that home.php with title and excerpt. unfortunately also my child pages are shown and i can't figure out ...
1
vote
2answers
468 views

Easiest way to show total number of subpages

I am making a portfolio site where each portfolio entry is a subpage of "Work". In my template, I am trying to say something like: worked on 15 projects and counting, where 15 is the total number of ...
1
vote
2answers
251 views

Can I install/embed Wordpress on a 'single page'?

I'm building a website from scratch (PHP, jQuery) and want to have full control over the design, implementation, etc. I want to install Wordpress so that when you go to a certain section of the site, ...
2
votes
1answer
126 views

Help with a custom page template - listing contents of childpages?

hey guys, I have no idea how to solve the following problem. I'd love to have a page-template that lists all it's child-pages but with the content. e.g. Imagine I have a page called "WORK. And "Work" ...
1
vote
2answers
2k views

page template for attachement page?

hey guys, I couldn't find anything on the web. Is it possible to have custom template for the image attachement page. I wonder if it is possible to add a navigation to the image attachement page so ...
1
vote
1answer
2k views

Adding a post shortcode to a page template?

hey guys, The "mingle forum plugin" provides the following shortcode [mingleforum]. When I paste this into a page the forum is shown. My forum is using a specific page-template called forum.php. Is ...