Tagged: Connection Custom number
August 31, 2019 at 8:53 pm #35563
However, I can’t make any connection with the back-end, to the listing page. How can I add this information to the Single listing page? So to: https://prnt.sc/p00lbr, that it is visible on the listing page?
Thanks in advance.
Aron VerhoevenSeptember 3, 2019 at 2:50 pm #35611September 3, 2019 at 2:52 pm #35612
Use can also use this php code to get the field info ( on template .php file )
get_post_meta( get_the_ID(), ESB_META_PREFIX.'YOUR_CUSTOM_FIELD_NAME_HERE', true )September 3, 2019 at 8:58 pm #35654September 4, 2019 at 4:45 am #35676
Hey Aron, may I ask? Which plugin and widget you used for Google Ads on listing page please?
Your site looks great!September 4, 2019 at 4:51 am #35677
I use Head and Footer code. I placed my Google AdSense code (and Google Analytics) in the header, and had setup the ads with Raw HTML widgets.
Google Adsense is providing the code, within the Adsense area.
Just searching for an way to place the code in the header of the website itself, so I don’t need to make use of an plugin for that.
Thanks!September 4, 2019 at 2:43 pm #35703
Thanks for this solution. It’s so simple. Much appreciatedSeptember 6, 2019 at 3:46 pm #35839
Wondering if it is possible to add more Custom Fields in one new widget? Could this be done with Raw HTML?
I would like to create an new widget for paying clients, with some more extra information fields (like numbers, and some text, which have to be provided by the creator of the listing).
I used the code above to insert it in the Widget Contact, but now I’m curious if it is possible to add more Custom Fields, into one new widget, which I can hide for non-paying clients.
Thanks for your answer and enjoy your weekend.
Aron VerhoevenSeptember 6, 2019 at 4:23 pm #35854
Hello Aron, check this doc:
https://docs.cththemes.com/docs/for-developer/September 9, 2019 at 5:41 pm #35944
Thanks for reffering me to that link.
I’ve tried to set it up, however, I think I am still missing something.
I have copied the text on the picture (https://docs.cththemes.com/docs/for-developer/extend-azp/, under Element 1). I’ve made an new code (called test.php), see: https://prnt.sc/p3pyh5, and placed it in my childtheme.
How can I go on? What are my next steps? For now I am just trying to insert this widget into the backend of the listing type, so I can change it later. I think I have to import the Shortcode widget? And than? Which classes do I have to use?
Thanks in advance.
Aron VerhoevenSeptember 9, 2019 at 5:42 pm #35945This reply has been marked as private.September 10, 2019 at 11:15 am #35984
The azp_shortcode element already exists, then your code will only override it. So please try with other name.September 11, 2019 at 6:20 am #36044September 12, 2019 at 10:30 am #36089September 12, 2019 at 2:12 pm #36109
Ah okay! I’ve changed the code to: https://prnt.sc/p524uw
However, it is still not visible in the widget list. Is there something I’m missing? What should I do with the
Thanks in advance.September 12, 2019 at 4:03 pm #36115September 12, 2019 at 4:03 pm #36116
https://developer.wordpress.org/reference/functions/__/September 12, 2019 at 6:34 pm #36119September 13, 2019 at 2:30 pm #36132
$new_elements['azp_newshortcode'] = array( 'name' => __('New Shortcode','citybook-add-ons'), 'desc' => __('Custom element for adding third party shortcode','citybook-add-ons'), 'category' => __("content",'citybook-add-ons'), 'icon' => ESB_DIR_URL .'assets/azp-eles-icon/text-block.png', 'open_settings_on_create'=>true, 'attrs' => array ( array( 'type' => 'textarea', 'param_name' => 'content', 'label' => __('Shortcode Content','citybook-add-ons'), 'show_in_admin' => true, 'desc' => '', 'default' => '', 'iscontent' =>'yes' ), array( 'type' => 'text', 'param_name' => 'el_id', 'label' => __('Element ID','citybook-add-ons'), 'desc' => '', 'default' => '' ), array( 'type' => 'text', 'param_name' => 'el_class', 'label' => __('Extra Class','citybook-add-ons'), 'desc' => __("Use this field to add a class name and then refer to it in your CSS." ,'citybook-add-ons'), 'default' => '' ), ) );September 14, 2019 at 4:13 am #36155
Seems not working.. Can’t discover what I am doing wrong, the widget is not showing up in the Select Element Sidebar.September 14, 2019 at 4:14 am #36156This reply has been marked as private.September 16, 2019 at 4:18 pm #36180
You have to require test.php file from functions.php file to make it work: https://prnt.sc/p6ow35
require_once dirname( __FILE__ ) . '/test.php';September 16, 2019 at 4:45 pm #36189September 16, 2019 at 4:49 pm #36191September 16, 2019 at 4:59 pm #36194
The topic ‘Connection back-end to listing page’ is closed to new replies.