Elronixx
Forum Replies Created
-
@wambrose:Ok well… if nothing else works, ill do it your way…. (although i dont want to create another “useless” account somewhere)
i just had another issue besides the erros… the placeholder #_EVENTURL returns the url of the events list page and not the single event page. did you got the same error?so far i figured out how to add filter like marcus said.
i have just one small problem:@marcus:the social button appears under the events list page and under the single events page…. but i just want it to be shown on single events page.
what do i have to write in the if statement to exclude the events page list?(think would be the easiest way)function my_em_custom_content($content){ <strong>if( site != event list page ){</strong> $content .= "Here, I'm adding this extra text to the end of my event content.";[...]
hey unfortunately your solution doesn’t work because i do not got an fb app ID. so registrated to get this app id but i always got an ERROR behind my like button ( you must registrate an admin or app id and write this app id in meta tags blabla…. ; i did this but always same error)
so what i need is what marcus told: dd them after the content from em_content filter.
so and this is where i stuck: https://wp-events-plugin.com/tutorials/overriding-event-page-content-with-filters/
how do i Override Event Page Content With Filters?
where i have to put the following code?function my_em_custom_content($content){ if( /* Do something here to decide whether to override */ ){ $content .= "Here, I'm adding this extra text to the end of my event content."; } //Whatever happens, you must return the $content variable, altered or not. return $content; } add_filter('em_content','my_em_custom_content');
just in an extra functions.php file in my theme? or in a file from events-manager? and what means “Do something here to decide whether to override”. i dont want to override something, just to add the php snippet for social share buttons.
maybe someone more gifted can make an add-on for social share buttons and explain me how it works ??
ps.: i just took fb as example (same way should work with twitter, etc. once you defined a variable, should be easy to call and echo the function)
Hey ok i think it dont will work with these plugins, that put the button automatically in the post. you will need either the “<iframe>” facebook tag or the fb plugin, where you can set the button where you wish by putting <?php echo wpfblike(); ?> in any php file.
ok so i think you will need a php code like above to put the button where you wish.
theres just a big problem within em. because the single event pages are produced as html pages. if you put this php code into the formatting single event pages after #_notes in the dashboard you dont get any output.so you have to put it into source code and generate just something like #_notes (maybe #_social_share_buttons) and define it in the same php file as #notes as “<?php echo wpfblike(); ?> function”. but i dont know where #_notes and how #_notes is genereated (i mean theres an input, sure, but what file says that the input is = #_notes)
hey i know its very much i want to do….
is there a possibility to get various event lists? for now theres just one table with all events… but i want to have severel categories.
this how figured it out for example:
i mark special events upcoming blue on the event calendar
this special events now should be shown in the special events table as a list.normal events or f.e. recurrent events i want to mark yellow and they should be listet in a several table on the events list page.
hope everyone get it wat i want to do ??
hey i got the same issue…. can you tell me what you’ve done till now?
i did not even find the file to place the php wp sharing snippet….
https://www.ads-software.com/support/topic/plugin-events-manager-php-snippet-on-single-event-page?replies=1#post-2138400in addition i just got an other idea…
i have an recurrent event, for which i have built a page with link in my main menue. so i dont wont it to be shown additionally in the events list.
how can i exclude an event to be shown in the events list?