It is currently November 26th, 2021, 11:33 pm



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: WordPress custom field.
PostPosted: June 15th, 2021, 9:24 pm 

Joined: June 15th, 2021, 9:09 pm
Posts: 6
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 286 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field
PostPosted: June 16th, 2021, 7:12 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11396
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: June 16th, 2021, 7:43 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 204
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: June 16th, 2021, 8:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11396
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 18th, 2021, 1:49 pm 

Joined: January 19th, 2017, 6:34 am
Posts: 36
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>

??


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 18th, 2021, 2:27 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11396
Location: Earth
Yes, that looks correct.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 18th, 2021, 3:57 pm 

Joined: January 19th, 2017, 6:34 am
Posts: 36
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 18th, 2021, 4:31 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11396
Location: Earth
Try this format:
Code:
<param=acf[field_619574c492742]>VALUE</param>


Should be fine then.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 24th, 2021, 10:55 am 

Joined: January 19th, 2017, 6:34 am
Posts: 36
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 :(


Top
 Profile  
Reply with quote  
 Post subject: Re: WordPress custom field.
PostPosted: November 24th, 2021, 3:27 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 11396
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC