harf4ng
Forum Replies Created
-
In fact I managed to do this like this…
I have used both the “format” and template file.In the format I have put:
<div class=”return-list-events”>← Retour à la liste des événements</div>
<div class=”event-name”><h2>#_EVENTNAME</h2></div>
<div style=”float:right; margin:0px 0px 15px 15px;”>#_LOCATIONMAP</div>
<p>
Date / Heure<br/>
Date(s) – #_EVENTDATES<br /><i>#_EVENTTIMES</i>
</p>
{has_location}
<p>
Emplacement<br/>
#_LOCATIONNAME
</p>
{/has_location}
<p class=”categories”>
Catégorie<br />
#_CATEGORYNAME
</p>
<!–#_ATT{Organisateur}
#_ATT{Nom du contact}
#_ATT{Téléphone du contact} –>And in the php file I have put:
echo $EM_Event->output_single();
$organisateur = get_post_meta($postID, ‘Organisateur’, true);
$contactname = get_post_meta($postID, ‘Nom du contact’, true);
$contactphone = get_post_meta($postID, ‘Téléphone du contact’, true);if ($contactname != ”)
{
echo ‘<p class=”event-contact”>’;
echo ‘Organisateur<br />’;
echo ‘<span class=”event-organisateur”>’, $organisateur, ‘</span><br />’;
echo ‘Contact : ‘, $contactname, ‘ (‘, $contactphone, ‘)’;
echo ‘</p>’;
}echo ‘<br style=”clear:both” />’;
/*echo get_post_meta($postID, ‘#_EVENTNOTES’, true);*/
echo get_post_field(‘post_content’, $postID);This way I used format, and I used the php for things that need php.
- This reply was modified 8 years ago by harf4ng.
Seems it does not work.
Returns nothing.My php code is like that:
global $EM_Event;
/*@var $EM_Event EM_Event;*/
echo $EM_Event->output_single(“#_EVENTNAME”);And it returns nothing.
If I try just a echo “hello” then it works, I see the text “hello”, but the php with $EM_Event does not work.Any idea?
Thanks
Ok I found what’s wrong. I have to enable “use format” ??
Though now there is something I don’t understand… is this possible to use placeholders in the template .php file?
The default file shows something like:
echo $EM_Event->output_single();So I think this displays the event, according to the “format” in the settings.
But what about if we want to create the whole display in the template file, without using the “format”? Can I do that? How do I put placeholders into my php file, to display event infos?Thanks
But yes, this is what I said I did, but it does nothing.
Did I miss something?Also, as in the event-single there is written:
/* Your file would be named single-event.php*/I have tried renaming it to single-event.php, and does not work as well.
Do I have to do something in the settings to have events manager use my template instead of the default.
Also, I have to disable “use format” for this to works, isn’t it?
Thanks
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Horizontal display?Thanks will try that
Ok so maybe there is a way with templates and using php?
Though seems I’m in no luck with php in formats for now, do they work in formats, or should I put the php code into the template only?Example, in my single event format, I have put an easy php command, just to test:
<?php echo “hello”; ?>But seems it does not work, it displays nothing.
Thanks
Forum: Plugins
In reply to: [CatalogX - Product Catalog Mode For WooCommerce] Translation does not workYes I did a translation of a sentence to test, but the button did not change… Dunno why…
But you really should consider providing the .pot file in the plugin.
Thanks
Forum: Plugins
In reply to: [WooCommerce] Display products by category and labelThis shortcode does this only by tags.
I need category and tag combined ??Guess I’ll have to study this function and do my own to add category in it as well ^^
Thanks for the tip though ^^
Forum: Plugins
In reply to: [WooCommerce] Display products by category and labelOk, thanks. I do not use SKU. They are called UGS in my french wordpress.
Just found out on the wordpress doc, what I call labels (étiquettes in french), is what wordpress calls “tags”.
So in fact I would like to find a way to display products for a given category and tag. Any way to do this?
In the tag I have put where the product is located, and in category, the kind of product it is…
Thanks
- This reply was modified 8 years, 1 month ago by harf4ng.
Forum: Plugins
In reply to: [WooCommerce] Display products by category and labelThanks, but in your shortcode, where is the label? I see only the category.
About SKUS, I still have a hard time understanding what it is. Can you show me where it is selected in a product?
Thanks
Forum: Plugins
In reply to: [WooCommerce] Advice for a product listingNevermind, my boss wanted something clean and simple, so I did something clean and simple, without carousel, sliders or the like ??
I have done this in my css with a display: none for the block with the price…
Forum: Plugins
In reply to: [Simple Post Expiration] color “Expired” wordI think he wants to put the word “Expired” (the prefix) to be colored in a given color, so it would be easier to see expired articles.
Forum: Plugins
In reply to: [WooCommerce] Avada and woocommerce: no fusion builder, no text fieldHi,
I found out what the problem was. I used a software to have an expiry date on posts, this software worked, but not tested on latest wordpress version, and seems conflicting with woocommerce.
ThanksForum: Fixing WordPress
In reply to: The best way to display a list of available places to rentI’m trying to make woocommerce work with my wordpress website and Avada, but I have issues with that, unsure what happens, when I create a product, for instance, fusion builder does not load up, and I can’t even enter plain text in the text fields of the product, like for instance for the product description.
Unsure what happens…