Skip to main content

All Questions

Tagged with or
18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
241 views

Advanced Custom Fields dynamic update_field

I have a function that is triggered when a new review is submitted on a specific page. function rex_my_action ($review, $post_id) { $some_value = get_post_meta( 753, 'rwp_user_score', true ); ...
user2812779's user avatar
1 vote
2 answers
4k views

How to "group" (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
夏期劇場's user avatar
0 votes
0 answers
524 views

Use a custom page with dynamic content as a user profile page

I'm trying to create a website with fully customised user profile pages. I've created the page which uses dynamic content to pull user custom fields into it, this works fine to view your own profile ...
jonnylucas's user avatar
0 votes
2 answers
559 views

Add custom template 'sub-page' to Custom Post type?

I have a custom post type called 'Inspections' Doing this, you can access an inspection record by going to example.com/inspections/inspection-slug-here However, I want to add some 'sub-pages' if you ...
Barry Chapman's user avatar
0 votes
1 answer
18 views

Displaying posts inside table having issues

I am trying to create a comparsion table like the attached image. But it was not working like in the image. for that i have done following code what i am getting is not like the image for example the ...
James Paul's user avatar
0 votes
0 answers
201 views

Custom post types & Pages hierarchy - Error 404

I've defined two custom post types: Theme Fiche I've also 7 pages using a defined rubrique template: (template-rubrique.php) Both my Theme and Fiche have an ACF post-object field. The Theme ACF ...
Quentin's user avatar
  • 15
0 votes
0 answers
382 views

Add and Custom category for posts "PAGE"

I want to create custom category page for posts "PAGE" for an internal use. The categories will be the list of the clients I want to remove somes fields (like slug, description, parent category ...
Samuel's user avatar
  • 354
0 votes
0 answers
1k views

Custom protected password page with ACF

I need some help if it's possible. Each page of my website are protected with a password, i use protected password page. Page link : http://builder.depretz.com/onepage-hotel You can see the custom ...
Samuel's user avatar
  • 354
0 votes
1 answer
366 views

Load one page with parent and child pages

Given I have a pretty long page and I don't want the user to insert content in the back-end all at once. More specifically, this given page is made of several sections (I'm actually using fullPage.js) ...
Diogo Bento's user avatar
0 votes
1 answer
61 views

Page template is missing fields or is invalid when I updating the template

I am trying to update a page template, and when I do something strange happens. Let me explain.. I have a template "Hat Size Guide" where the code file is /themes/my-theme/pages/page-hat-size-guide....
Nick Rolando's user avatar
0 votes
1 answer
95 views

Loop through two different sets of custom fields

I created a Custom Field ('custom_name') to allow content editors to specify a 'custom_name' (different from the title of the page) to any post created: custom_name - (Field type --> 'text') For a ...
John's user avatar
  • 125
0 votes
0 answers
100 views

Define an extra field for all pages (with no plugin?)

I usually use WP Types define custom fields, post types, ... But I have a theme a little bit overloaded of plugins, so I would like to define this field for (all) the pages in functions.php if ...
Toni Michel Caubet's user avatar
0 votes
0 answers
393 views

Using Post ID and Page ID in same function

I've written a function to display a custom sidebar, which is outputted as a sidebar. On some pages, I have a Custom Field called 'show_sidebar', which I can assign as 'false' on pages which I do not ...
Tom Oakley's user avatar
0 votes
1 answer
244 views

How to use page metadata while using wp_list_pages()?

I'm creating my pages links in wordpress, using wp_list_pages(). each link contains an <i> tag which displays retina icons. I want to set a different class for each link in order to display a ...
user avatar
0 votes
1 answer
968 views

Getting content from custom fields of different pages on a single page

I want to get content from one custom field of different pages along side their page titles and I'm using the following code: <?php $mypages = get_pages( array( 'sort_order' => 'ASC', ...
user1666698's user avatar
0 votes
1 answer
71 views

Decouple page name from page title

As far as I can see, the name of a page (in admin) is the same as the title for the page. In many cases you would want the page name to be something else to better grasp what it's about while ...
BoBoz's user avatar
  • 356
0 votes
1 answer
108 views

Home page: using custom fields for posts and pages

in my home page I'd like to display some pages and posts title using the custom fields. Unfortunately my code prints only posts title. If there is a key "highlights" print the title. Here my code: ...
Ale's user avatar
  • 1
-1 votes
1 answer
531 views

How do delete a meta key?

Unlike the rest of the platform for some reason, there is no apparent way to simply modify a meta key where it lists them for a given page. I created a meta key as a means of testing, but I can't find ...
John Joe's user avatar