iantresman
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields (ACFยฎ)] Save as unix timestampAnother Update
I was wrong, importing the posts using WP All Import, together with the โSave as unix timestampโ snippet worked. I now have data stored in the database in Unix Timestamp format.
Forum: Plugins
In reply to: [Advanced Custom Fields (ACFยฎ)] Save as unix timestampI can confirm that Bulk Edit will not bulk update all fields.
If I use ACF Quick Edit Fields, then I can use Quick Edit to display and save the fields, and this will update the Unix timestamp. Update: Now this has stopped working.
I also tried re-importing the posts using WP All Import, but unfortunately the “Save as Unix Timestamp” code snippet was ignored.
My only option at the moment is manually open and save all 1000 posts.
- This reply was modified 5 years, 7 months ago by iantresman.
Forum: Plugins
In reply to: [Custom Content Shortcode] Displaying page title inside attachment loop?Perfect, that works, many thanks.
Solved with a bit of CSS:
.eael-filter-gallery-wrapper .gallery-item-caption-wrap.caption-style-hoverer {visibility:visible;opacity:1}Forum: Plugins
In reply to: [Custom Content Shortcode] Viewing media?I’m on an attachment page, and can use [field title] to view the title, but [field image] does not display the “featured” image.
Forum: Plugins
In reply to: [Custom Content Shortcode] If URLIn the Custom Content Shortcode documentation (in the plugin pages), select “Pass” (in the Advanced tab) where you will see “URL route” which is used “to pass the current URL route or its parts”.
It would be great if the documentation could be searched, as finding the appropriate section is time consuming.
Forum: Plugins
In reply to: [Custom Content Shortcode] Viewing media?OK< thanks.
Forum: Plugins
In reply to: [Custom Content Shortcode] Viewing media?But what if the media is not yet attached to a page/post?
Forum: Plugins
In reply to: [Custom Content Shortcode] [field url] does not work inside <a href=If it is of help, I have just narrowed down when the issue arises for me.
I use the GeneratePress theme builder, and Customer Content Shortcode generally works fine, EXCEPT when used in its “Elements” (Hook) feature.
Forum: Plugins
In reply to: [Custom Content Shortcode] Select from post type and field value?That was it, I hadn’t clocked its significance before.
Many thanks!
Forum: Plugins
In reply to: [Custom Content Shortcode] Select from post type and field value?I couldn’t get any of the following to work:
[loop type=art field=feature value='1' count=1]
[loop type=art field=feature value=1 count=1]The following selected all posts of type art, and allowed me to display the value of the field “feature”:
[loop type=art field=feature]
[loop type=art not field=feature]My ACF field “feature” is a checkbox, and the key is 1.
Forum: Plugins
In reply to: [Custom Content Shortcode] orderby/order numeric not alphabeticalYes, that would enable the alphabetical ordering to work, but I was using the numeric key as part of a URL (without the leading 0).
Forum: Plugins
In reply to: [Custom Content Shortcode] Show category term if checkedMy post has three available terms in a category:
[ ] Book Review
[ ] Free Content
[ ] UncategorisedI can check and hence select any of the terms, eg:
[X] Book Review
[ ] Free Content
[ ] UncategorisedIn a post, I might want to display “Book review” (if it is checked), and either “Free” or “Premium” depending on whether “Free Content” is checked.
Forum: Plugins
In reply to: [Custom Content Shortcode] Show category term if checkedSo the solution is as follows:
[for each=category current=true] [if each=book-review][each link][/if] [/for]But still no idea how to check whether a term is checked or not.
- This reply was modified 5 years, 9 months ago by iantresman.
Forum: Plugins
In reply to: [Custom Content Shortcode] Show category term if checkedThere does not seem to be a way to find whether a term is checked or not. I expected one of the following [if] statements to do so:
<ul> [taxonomy category] [for each=category ] <li>Term: [each] <ul> <li>Each: [if each] X [else] - [/if]</li> <li>Field: [if each_field] X [else] - [/if]</li> <li>Value: [if each_value] X [else] - [/if]</li> </ul> </li>[/for] </ul>A clue to the solution is to use “current=true” which looks at the taxonomy applied to the current post, and then only shows checked terms.
<ul> [taxonomy category] [for each=category ๐ฐ๐๐ฟ๐ฟ๐ฒ๐ป๐=๐๐ฟ๐๐ฒ] <li>Term: [each] <ul> <li>Each: [if each] X [else] - [/if]</li> <li>Field: [if each_field] X [else] - [/if]</li> <li>Value: [if each_value] X [else] - [/if]</li> </ul> </li>[/for] </ul>- This reply was modified 5 years, 9 months ago by iantresman.