Boilerplate tokens in custom fields

Hi,
can I use boilerplate token in custom fields on a boilerplate page? I tried doing it and it doesn’t seem to be working. when I make separate boilerplate pages for each site and use custom fields that hold tokens it works. but when using 1 boilerplate for multiple child sites and having token in the custom fields the tokens don’t display the correct info on the correct sites.

Hi @rachel

When you create a Custom Boilerplate Token on /admin.php?page=Extensions-Boilerplate-Extension&tab=tokens, the values for that token then need to be defined on the Edit page of all relevant Child Sites.

After you do that, you will be able to use those custom tokens when making a bulk Boilerplate post or page.

Please attach screenshots if possible so we can have a better idea of how you are using these tokens.

And can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Info → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Yes my custom boilerplate tokens work but when I put them in a custom field of a boilerplate page and and put that page on two child sites the value of my custom token is the value for site 1 only even when displayed on site 2. If i publish them one at a time on each site then the token value in the custom field works properly. But not if if i select all sites and publish it.






### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
WordPress Version                  >=6.2                                                  6.4.3                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.29.0                                               8.5.0                                        Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/3.0.8                                Pass        
OpenSSL Working Status             Yes                                                    Yes                                          Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES                                                      
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, random, session, shmop, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=256M                                                 1024M                                        Pass        
PHP Post Max Size                  >=2M                                                   1024M                                        Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   1024M                                        Pass        
PHP Version                        >=7.4                                                  8.2.15                                       Pass        
PHP XML Support                    N/A                                                    YES                                                      
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                error:12000079:random number generator::Cannot open file
error:12000079:random number generator::Cannot open fileWarning     

### MySQL                          Required                                               Detected                                     Status   ###

MySQL Client Encoding              N/A                                                    utf8mb4                                                  
MySQL Mode                         N/A                                                    NO_ENGINE_SUBSTITUTION                                   
MySQL Version                      >=5.0                                                  5.7.44-log                                   Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       4.93 MB                                                
Operating System                   Linux                                                  
Request Time                       1712062317                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache/2.4.58 (Amazon Linux)                           
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance                                                        
Basic uptime monitoring enabled    No                                                     
MainWP Dashboard Version           Latest: 5.0.2 | Detected: 5.0.2 Pass                   
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return  50                                                     
Maximum number of posts to return  50                                                     
Maximum simultaneous install and update requests                                                       
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests                                                        
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          2                                                      
Optimize data loading              No                                                     
Plugin advanced automatic updates enabledNo                                                     
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledNo                                                     

### Extensions                     Version                                                License                                      Status   ###

Boilerplate Extension              5.0                                                    Active                                       Pass        
MainWP Clone Extension             5.0                                                    Active                                       Pass        

### Plugin                         Version                                                Status                                    ###

MainWP Dashboard                   5.0.2                                                  Active                                       

Hey @rachel

Thank you for the screenshots and the detailed explanation.

I was able to reproduce your findings.

Right now, Boilerplate tokens are not officially supported in Custom Fields.
The development team will look into adding support for it in the next release of MainWP Dashboard and Child plugins.

Hey @rachel

We have introduced support for Boilerplate tokens in Custom Fields in version v5.0.3 of the MainWP Dashboard released today.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.