oldcreakyknees
Forum Replies Created
-
Hi @ibrahimsharif,
Thanks for getting back to me. It’d be great if you could add that as a feature request and I look forward to seeing it implemented.
Is there a way to write a report for this using Fluent Forms?
- This reply was modified 10 months, 3 weeks ago by oldcreakyknees. Reason: Thought of something after originally submitted
Forum: Plugins
In reply to: [Nav Menu Roles] Hidden sub menus are displayed when main menu item is hidden… that’s great @helgatheviking
Forum: Plugins
In reply to: [Nav Menu Roles] Hidden sub menus are displayed when main menu item is hiddenimgur.com won’t allow me to create an account, so I can’t post an image, I’m afraid.
Using your example though, if you set “Mix and Match” (sub-item) to “Hide” for “Everyone” and then do the same for “Shop”, do you see the “Mix and Match” sub-item at the end of the main menu on the front end?
Forum: Plugins
In reply to: [Nav Menu Roles] Hidden sub menus are displayed when main menu item is hiddenHi,
I’ve just copied a site into VirtualBox, cleared the database tables and reinitialised WordPress that way. Only Twenty Twenty One theme is installed. All other plugins deleted.
I created a few pages, created a menu, called “menu” and added it at the “Primary menu” location. Added the pages to the menu and moved two to be sub-menu items, one is hidden with the plugin.
All worked as expected.
To reproduce: hide the top-level menu item: the hidden sub-menu item is visible at the end of the top level navigation.
Hi Jory,
· · · · · · · · · · · · · · · · · · · · · · · · ·
“Are your terms actually called “1”, “2”, “3” etc.? And are the slugs also numbers?”– Yes, the terms are actually called “1”, “2”, “3” etc.
– Yes, the slugs are also numbers· · · · · · · · · · · · · · · · · · · · · · · · ·
“What do you mean with “properties”?From wp-admin -> “Pods Admin” -> “Edit Pods”:
– “Label” column contains “Properties”
– “Name” column contains “properties”From “Edit Pods”, click on “Properties” Pod, to edit it:
– Properties pod name = “properties”
– Field group = “Properties”(If it helps, in the same place:
– Field label = “Bedrooms”
– Field name = “bedrooms”The field “Bedrooms” in the Pod (“Properties”) is
– Field Type = Relationship
– Related Type = Bedrooms (bedroom)The related type is a custom taxonomy, created Pods, called Bedrooms, with values “1”, “2”, “3”, etc.)
· · · · · · · · · · · · · · · · · · · · · · · · ·
So should my shortcode be:[pods name=”properties” template=”Address and bedrooms” where=”properties.bedrooms.slug=’3’”]
-OR-
where=”properties.slug=’3’”
-OR-
where=”bedrooms.slug=’3’”]
-OR-
one of the above but with the number 3 just in double quotes (ie miss out the single quotes)?BTW, I’m just adding this as a shortocde block on the page. Should I be using one of the Pods blocks?
Sorry this is dragging on. I really appreciate the help.
Hi Jory,
“The first shortcode suggests you want to render a form …”
– I didn’t mean to confuse things. That was my attempt to show what the fields in the Pod are called.“Reading your initial request I was under the impression that you wanted to render a list of houses with 3 bedrooms, correct?”
– Yes, that’s correct. I’m trying to filter what’s shown on the page by the number of bedrooms eg: show list of properties from properties pod using a template where bedrooms = 3Properties pod name = “properties”
Field group = “Properties”
Field label = “Bedrooms”
Field name = “bedrooms”The bedrooms custom taxonomy seems to have:
term_id
name
slug
description
taxonomy
parent
term_taxonomy_id
term_group
count`If I remove the where clause from the shortcode it shows all properties (with any number of bedrooms) but as soon as I add the where clause, it shows no properties.
Sorry if I’m missing something obvious …
Hi Jory,
Thanks for the amazingly quick response.
I’m still struggling, though:
Edit Pod: bedroom
… has no fieldsAdding this shortcode to a page: [pods name=”bedroom” form=”1″] shows:
Title
Permalink
Description
TaxonomyThe bedrooms custom taxonomy seems to have:
term_id
name
slug
description
taxonomy
parent
term_taxonomy_id
term_group
countSo I’m using where=”bedroom.name = ‘3’ but still no properties are displayed
There are definitely 3 bedroom properties, and the number of rooms is displayed when using a shortcode in a page :
[pods name=”properties” limit=”30″ orderby=”bedrooms ASC” template=”Property List”]
(which uses {@bedrooms} magic tag)“… use the WordPress core taxonomy relations instead of metafields …”
– Do you mean just add a new category of “Bedrooms” and use that instead? Can a field in a pod be a relationship an existing taxonomy, created in the usual way in WordPress?Thanks again.
Hi @t-p,
I’ve been busy with various things so it’s taken a little while to get back to you.
Unfortunately, the links are for the Twenty Twenty Two theme and the Twenty Twenty theme.
However, it turns out I’d been enqueuing the child theme’s stylesheet incorrectly. Twenty Twenty One is different from previous themes, it seems.
Here’s what what worked in the child theme’s functions.php:
<?php /* enqueue script for parent theme stylesheeet */ function childtheme_parent_styles() { // enqueue style wp_enqueue_style( 'parent', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'childtheme_parent_styles');
(I found it here: https://kinsta.com/blog/wordpress-child-theme/
It’s in this section: https://kinsta.com/blog/wordpress-child-theme/#create
Scroll down to “The functions file”)Hope that helps someone else …!
- This reply was modified 2 years, 6 months ago by oldcreakyknees.
- This reply was modified 2 years, 6 months ago by oldcreakyknees.
Hi t-p,
Thanks for your reply.
I can make the CSS modifications, that’s not an issue. I was asking about why changes made to the child theme’s style.css file aren’t recognised.
Have you any suggestions please?
All the best.
- This reply was modified 2 years, 8 months ago by oldcreakyknees.
Hi Jory,
Okay. Thanks for coming back to me.
Do please let me know if I can do anything to help (testing etc.)
Cheers.
… as ever, thanks @keraweb.
There’s a typo in my original post: I had added wpdefine(‘WP_POST_REVISIONS’, true ); to wp-config.php (not false)
Okay, so there are two parts to this:
1. ‘Revisions’ doesn’t show in ‘Screen options’ and there’s no ‘Revisions’ meta box.
2. Register ‘Revisions’ for Custom fields in the Pod1. To test this, I built a simple pod in a local installation of WordPress and had all the same settings as on the live site. The local version has ‘Revisions’ in the pods admin screen’s ‘Screen Options’ and shows the ‘Revisions’ meta box when that’s ticked with revisions in it. The live site doesn’t show any of this, though. Teh test site registers revisions for Title and Editor but not the Custom Fields added in the Pod.
2. “Keep in mind that revisions do not include custom fields.”
I don’t know if this is relevant or not: https://wordpress.stackexchange.com/questions/139031/enable-revisions-for-custom-post-type“When you register your CPT, you need to manually add support for revisions. Only title and editor are set as defaults”
“… to enable revisions, you need to add it like this
‘supports’ => array( ‘title’, ‘editor’, ‘revisions’ ),
in your $args = array() when registering your CPT.”
“… it is important to know, the revision metabox will not show up until there are actually revisions for the post. If there are no revisions, the revision meta box will not show”
Would that enable revisions on the Custom Fields in the Pod?
Thanks again.
Forum: Plugins
In reply to: [Admin Columns] Users missing in SettingsOkay, thanks for you help @dungengronovius
Thanks @jimtrue,
I had ticked “Enable Archive Page” in the “Advanced Options” tab and entered an “Archive Page Slug Override”. For some reason, I just hadn’t twigged that option would create an archive page automatically (not sure why I didn’t put two and two together).
In the “Auto Template Options” tab
: “Enable Automatic Pods Templates for this Pod?” is ticked
: “Archive Template Location” is set to ‘After’ (which I was hoping would show the list of pods after some post content I create)
: “Archive Template Filter” is ‘the_content’I looked at FacetWP but, again, it’s a premium plug-in which, I fear, will cause the usual no-end-of-grief ensuring clients keep their subscription current in order to get updates etc. so it’s not an option in this case, I’m afraid.
So I have an automatically generated Pod Archive page using the Pods template I assigned it it.
– Does what you’ve suggested work with the free version of Search & Filter or just the premium version?
– If it does, where do I call Search & Filter? In the Pods template or somewhere else?For the archive page itself:
– Where would I set the page template (as opposed to the Pods template)? I’m using the Twenty Twenty theme so would like to use the “Cover Template” or “Full-width Template” for the Pods archive page, not the default template.
– How would I add post content to the archive page (eg: to explain what the archive page is) ie “Archive Template Location” : ‘After’
– Where would I change the automatically generated Pods archive page title (currently it’s called “Archives: Properties”;
– Is it possible to make this archive page the site’s landing page “Settings” -> “Reading” -> “Your homepage displays” : “A static page (select below)” : “Homepage:” – Archive pages don’t show up in the drop-down list.That’s a lot of questions in one question, I know, but hopefully they flow together as logical steps.
Thanks ever so much and all the best.