0
votes
2answers
63 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
1answer
39 views

Create download page from post option link

I have a button download. It's contain the link from post option. I want to when click button download, it will show a download page with the link in post option instead go direct link from it. ...
1
vote
1answer
60 views

Can I use a Custom Meta Value inside of 'get_the_terms'?

I have a custom Page Template, and this is the code that I am trying to manipulate to change depending on a custom meta value that I write for specific Pages. $terms = get_the_terms($post->id, ...
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
1answer
45 views

Edit different parts of a page seperately

I'm an experienced PHP developer without a lot of wordpress knowledge (yet!). I have to put together a fairly simple Wordpress page in the next few days. To get started I need to create a custom home ...
0
votes
1answer
358 views

Multiple single templates?

Lets say i have a custom post type called 'event' that has several custom meta boxes for images, docs, etc.. Would it be possible to have two different single templates? For example: i have a page ...
0
votes
0answers
64 views

Custom field data is not saving

I only have this code, which is in functions.php. I can see the field in admin page, but the data is not saving. add_action('add_meta_boxes', 'home_page_template_meta_box'); function ...
0
votes
0answers
33 views

Fields for different parts of a page

I'm going to use WordPress to manage a mainly static website. Some of the pages (like the typical about us) have some paragraphs that should be editable from the admin panel. The thing is, I don't ...
0
votes
1answer
30 views

Group pages by custom field values

I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2. My question: Will it be possible to build a summary page template say for Brand, ...
0
votes
2answers
153 views

Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)

I've spent a few days researching working with WP static pages - as separate from posts. Although I've found useful guidance, I can't seem to find any good tutorials or worked examples that show me ...
0
votes
1answer
61 views

How to use shortcode inside of shortcode in theme

I am trying to place a shortcode inside another shortcode within a page template, however the various attempts I've made seem to not do anything. Here's how my code looks now - <?php echo ...
0
votes
2answers
187 views

Get custom field from page, in a post?

I'm not quite sure how it works, if you're on a post (single.php), does it count page.php as the page it's on? What i need to do, is get a custom field assigned to a page, from a blog post. I need it ...
0
votes
2answers
42 views

Can You Build Page Templates Without Extra Files

I'm very familiar creating page templates in WP and for this project I really just have one page template with an option to switch the sidebar from the right side to the left side. The problem is that ...
1
vote
1answer
77 views

Limits, not all post are showen when querying for posts by view count

I'm having some difficulty getting a loop that gives me post by most viewed. I started by following this tutorial ...
1
vote
2answers
213 views

Custom fields attached to a page template only show on edit screen when page is saved

When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish). Ideally, the custom field should show when I ...
1
vote
0answers
111 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
1answer
576 views

How do I include a template file while allowing it to render its own dynamic content added via custom box?

I have 3 theme files: header.php, navigation.php and page.php page.php calls header.php They both have content which is added to via a custom box. navigation.php has some content added to it via a ...
0
votes
2answers
333 views

Displaying page image in the footer automatically

I've got the following problem: each page of the site has its own image which needs to be placed within the footer div for correct, static placement. However each image is different so I can't just ...
2
votes
1answer
2k views

Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template

I have the following function set up in my functions.php file to allow my custom post type "Slideshow" to work. add_action( 'the_post', 'paginate_slide' ); function paginate_slide( $post ) { ...
2
votes
1answer
683 views

Advice needed for importing custom field data and database structure

Looking for advice for the best method to accomplish the following. I have a custom page template with several custom fields/taxonomy. The data needed for these custom fields actually resides in ...
2
votes
2answers
158 views

How do I read the value of a custom field of the page?

When creating custom page templates, how do I get the value of a custom field of the displayed page?