themaPoster
http://poster.themasoftware.com/forum/

WordPress custom fields.
http://poster.themasoftware.com/forum/viewtopic.php?f=4&t=11018
Page 1 of 2

Author:  sdan [ June 15th, 2021, 9:24 pm ]
Post subject:  WordPress custom field.

Hello,

I am a web developer.

How do I add a new WordPress custom field for themaPoster template?

My custom field name: example_custom_field

Value: URL (image)

Thanks in advance.

Attachments:
File comment: screenshot
screenshot.jpg
screenshot.jpg [ 63.5 KiB | Viewed 2292 times ]

Author:  Freddy [ June 16th, 2021, 7:12 am ]
Post subject:  Re: WordPress custom field

Hi,

you can do that with custom param like this:

Code:
<param=NAME=VALUE>


However the NAME is from HTML source (not the name which is in your screenshot, it's usually different).

You might need two custom params, one with value for the "Name" field and another for the "Value" field (the field names should be taken from HTML source).

If you can PM me URL and login details and I could take a look.

Author:  Pablo01 [ June 16th, 2021, 7:43 pm ]
Post subject:  Re: WordPress custom field.

Hi Freddy.

As I understand this, it is to be used as featured image on the blogs grid layout.
This is for a website I post on.

I only use {#cover#} in my TC template so the image is used as featured image + cover inside the post.

Author:  Freddy [ June 16th, 2021, 8:18 pm ]
Post subject:  Re: WordPress custom field.

Custom params can be used for tons of custom fields (including feature image from URL field).

However themaPoster grabs first image as featured image URL by default already.

If you need something specific - PM me.

Author:  ziggyzab [ November 18th, 2021, 1:49 pm ]
Post subject:  Re: WordPress custom field.

Freddy wrote:
Custom params can be used for tons of custom fields (including feature image from URL field).

However themaPoster grabs first image as featured image URL by default already.

If you need something specific - PM me.


Hello, If my backend HTML code says:
Code:
<input type="text" id="acf-field_619574c492742" name="acf[field_619574c492742]" value="<center><a href=&quot;https://streamtape.com/v/7BkrqLPKBvuAzl1/&quot; target=&quot;_blank&quot;>ST</a></center>">


To add value to this custom field, I should use

<param=acf[field_619574c492742]=VALUE>

??

Author:  Freddy [ November 18th, 2021, 2:27 pm ]
Post subject:  Re: WordPress custom field.

Yes, that looks correct.

Author:  ziggyzab [ November 18th, 2021, 3:57 pm ]
Post subject:  Re: WordPress custom field.

Freddy wrote:
Yes, that looks correct.



Ok, it recognizes the field correct, BUT, as a value, I want to insert a text string that contains few "<" and ">" which "unlocks" this param function too soon.

Any way to fix this?

Author:  Freddy [ November 18th, 2021, 4:31 pm ]
Post subject:  Re: WordPress custom field.

Try this format:
Code:
<param=acf[field_619574c492742]>VALUE</param>


Should be fine then.

Author:  ziggyzab [ November 24th, 2021, 10:55 am ]
Post subject:  Re: WordPress custom field.

Freddy what about custom taxonomies, those fields in Wordpress backend require to click add button, and this way of adding custom field as a param doesnt work :(

Author:  Freddy [ November 24th, 2021, 3:27 pm ]
Post subject:  Re: WordPress custom field.

PM me URL and login details to take a look.

Edit:

Custom params works fine for those fields as well (tested).

Wrote them in PM.

Author:  kowalski74 [ March 18th, 2023, 11:54 am ]
Post subject:  WordPress custom fields.

Hello, Freddy.
Please help me figure out the additional custom fields in WordPress.
(read similar topics on the forum, did not understand)

There are two types of additional custom fields on the site:
ACF and additional Tags fields.

Attachment:
acf.jpg
acf.jpg [ 31.01 KiB | Viewed 1170 times ]

and
Attachment:
tags.jpg
tags.jpg [ 53.13 KiB | Viewed 1170 times ]


I tried adding a template to the text, none of the options worked:
Code:
<param=acf[field_6408740811aeb]=Title shorts>
<param=newtag[actors]=Abigail Mac>

<param=acf[field_6408740811aeb]>Title shorts>
<param=newtag[actors]>Abigail Mac>

<param=acf[field_6408740811aeb]>Title shorts</param>
<param=newtag[actors]>Abigail Mac</param>



Tried on different sites.
Both on the Internet and on a local server.

Author:  Freddy [ March 18th, 2023, 12:08 pm ]
Post subject:  Re: WordPress custom fields

Hi,

They work fine just the names are different.

They change the name when submitting post, you need to debug request to see them.

Did that in the past, but can't remember correct names.

PM me URL with some login details. Will take a look.

Author:  kowalski74 [ March 18th, 2023, 3:01 pm ]
Post subject:  Re: WordPress custom fields.

Thank you for sending me looking in the right direction.
Found the correct name for Tags.

Code:
<param=tax_input[actors]=Abigail Mac>

Attachment:
tax_in.jpg
tax_in.jpg [ 15.06 KiB | Viewed 1162 times ]


But for the ACF plugin - no.
Tried everything:

title_shorts
acf[field_6408740811aeb]
acf_fields[20]
acf_fields[20][key]
acf-group_64087408d0661-hide
pods_meta_title_shorts

I would love to give access, but I'm currently working on a local server.
I will keep looking for a solution.

Author:  Freddy [ March 18th, 2023, 4:40 pm ]
Post subject:  Re: WordPress custom fields.

I might need to add one small fix for that plugin.

But I would need a way to test it.

Author:  abegreen [ May 12th, 2023, 1:57 am ]
Post subject:  Re: WordPress custom fields.

I need help checking the checkbox.

This is how it looks when unchecked:

Image

This is how it looks when checked:

Image

Both look the same to me, I have tried:
<param=um_content_restriction[_um_custom_access_settings]=1>
...and also tried everything I could think of.

Name looks different in html source:

<label for="um-admin-restrict-content-hide"><input class="hide-postbox-tog" name="um-admin-restrict-content-hide" type="checkbox" id="um-admin-restrict-content-hide" value="um-admin-restrict-content" checked='checked' />Ultimate Member: Content Restriction</label>

Any help would be appreciated.

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/