I have created Custom Post and Taxonomy using WCK plugin. And also created multiple slugs taxonomy.
I want to display multiple slugs results using shortcode
Ex: [testimonial city="abc, efg"]
Thanks in Advance.
Any references should appreciated.
Thanks
Related
So, I am trying to set the target ID for an elementor template using a short code ... e.g. can I use a shortcode like: [elementor-template id="15639" postid="9999"]?
Here my intention is to reuse an elementor template which pulls the data from post #9999 into the template. The next one might be #10078, etc. Is this possible? I can't seem to find the answer or I am searching for the wrong terms. Thx much! --Dano
P.S. The elementor template I created uses a Modal Widget, so the user can click a thumbnail (from post #9999) and then get an enlarged image (diagram) + all the data regarding the diagram (using ACF). To be clear, I am using a single post template type, NOT an archive. I don't want to create many elementor templates. I want one template that reuses the post data from a preset ID. Of course, the current page or post (that the user is on) is not the target ID I need, thus my question ... Maybe I need a custom query that will allow me to set a target ID in the shortcode?
Thx in advance!
I need to create hook for CMS block individual content in prestashop. So that i can display CMS items in different positions and also i need to display CMS items in home page.
Is it possible to create hook for CMS block. Any suggestions would appreciate
Thanks in Advance
You can use displayTop hook through a custom module and need to change the rendering condition for different pages of PrestaShop.
Every page in PrestaShop has a unique name that can be used to change block content as per your requirements.
The page name can be fetched using following line in any Class file in PrestaShop:
$this->context->smarty->tpl_vars['page_name']->value
I am using the Advanced Custom Fields Plugin (http://www.advancedcustomfields.com) with the options page add-on so I can use global variables throughout the theme (on multiple pages).
I don't know PHP and I'm trying to get the custom field from the options page by using a shortcode in the content on the different pages inside the WYSIWYG editor.
Is this possible? I can't figure out how to do it after days of trying. Can anyone help? I've tried going to the plugin's support and haven't gotten anything back.
Please Help! I really need to get this working!
References:
http://www.advancedcustomfields.com/docs/functions/using-shortcodes/
http://www.advancedcustomfields.com/add-ons/options-page/
Figured out a way around it. I can just use the shortcode they provide to reference a specific post/page ID which accomplishes the goal of only having to put it in once and it being rendered at multiple pages as long as the shortcode is there and properly formatted.
Use the post_id of option in your shortcode as per this example:
[acf field="myfieldname" post_id="option"]
Block type: Text Block (WYSIWYG field)
Text:
[acf field="NAME-OF-ACF-FIELD" post_id="options"]
Image (Return Format: Image URL) and alt text:
<img src="[acf field='NAME-OF-ACF-FIELD' post_id='options']" alt="[acf field='NAME-OF-ACF-FIELD' post_id='options']" />
I'm using a Salesforce Web-to-Lead form on a website i'm working on.
I want the same form to appear in 2 places, in the footer but also in a fixed position div.
Because the labels and inputs have the same ID they are conflicting with my form validation and behaving erratically.
Is there an easy way to fix this?
Thanks in advance,
George
Form key/value pairs (in HTML in general, not just SFDC of course) are submitted based on form element NAME attributes, not ID. So just remove the ID tags (or change them if they are being used by your custom validation).
I need to add some extra field to Joomla registration form without using any extension. Please does anyone know how I can go about. I have created the extra fields in the db and added the html for the textfields but I don't know what to do next.
Some articles here that describe how to add extra fields:
http://joomla-and-more.com/2010/02/05/how-to-velden-toevoegen-bij-de-joomla-registration-form/
http://blog.manchumahara.com/2010/03/18/how-to-add-extra-fields-in-joomla-registration/
http://www.youtube.com/watch?v=dk_86nHu3AM