headworm
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Select Menu] No menu at all on certain URL'sBack again! I have now rectified my login/logout issue so for anyone with the same problem I replaced $_SERVER[‘REQUEST_URI’]
with get_site_url() and all is right with the world again.Regards
Forum: Plugins
In reply to: [Responsive Select Menu] No menu at all on certain URL'sHi Chris,
Thanks for taking the time to look at this, sorry I haven’t had time to come back since, it’s been a busy week.
I have found the problem this morning, I had some code in my functions.php to include a Login/Logout link in my menu which I got from here:
function autov_add_loginout_navitem($items) { $login_item = '<li class="login menu-item">'.wp_loginout($_SERVER['REQUEST_URI'], false).'</li>'; $items .= $login_item; return $items; } add_filter('wp_nav_menu_items', 'autov_add_loginout_navitem');
Removing it fixed the problem though I am now missing my handy login/logout menu item. If you have any ideas (and the time to look) as to why this bit of code is conflicting with your excellent plugin please let me know.
Forum: Plugins
In reply to: [WPBook Lite] Include date after titleSuccess at last! Just in case anyone else needs the same thing this is what I ended up with.
$my_title=$my_post->post_title . ' | ' . mysql2date('l, jS F, Y @ ga', $my_post->post_date);
Post Title | Saturday, 24th November, 2012 @ 9pm
I now have group info showing in my main events list. I did this by creating a new placeholder file called groupinfo.php and saving it to my-theme/plugins/events-manager/placeholders/ containing the snippet of code agelonwl kindly pasted above. I also changed both instances of $event to $EM_Event
I added my placeholder #_GROUPINFO to the core file plugins/events-manager/classes/em-event.php like this:
case '#_GROUPCOLUMN': ob_start(); $template = em_locate_template('placeholders/groupcolumn.php', true, array('EM_Event'=>$this)); $replace = ob_get_clean(); break;
Then put my place holder in the correct place in Default event list format in the back end and all is tickety boo.. well nearly.
I am sure this is far from ideal as I don’t really know what I am doing with php or the core files and of course this will need replacing after every update but aside from this, the only issue now for me is not being able to search groups via the search form. If I can do that then at least I’ll have my site working as intended even if it is a bit weird.
Any comments, advice or pointers appreciated as always.
Thank you so much agelonwl, that works perfectly and is exactly what I need but would really like this in the main events list and search results which I am currently trying to figure out how to do, any advice on this would be most welcome. It seems like the best thing would be a placeholder for this though reading through the tutorials has so far only frazzled my brain. Really appreciate your time helping out.
Thanks agelonwl that seems to be exactly what I have been looking for, specifically the code offered by jazbek but, alas, I have no idea how to implement it as I only have a very basic knowledge of php; any pointers would be most helpful if anyone has the time and inclination to assist. ??
Thank you Marcus, that did the trick although it needed to be in group-events.php, it was already in my-group-events.php.
Forum: Plugins
In reply to: [Magic Fields] Getting Magic Fields to appear in RSS feeds?I gave up on all the other solutions, like yourself I just couldn’t get them to work so I just started experimenting.
It’s not perfect by any means because if you use the main post editor the content won’t appear in the feed but yet you have to type something in there to get the magic fields to appear. If you can improve on it please do share cos my brain is fried for now. lolForum: Plugins
In reply to: [Magic Fields] Getting Magic Fields to appear in RSS feeds?Sorry for the late response to this (just registered), hopefully you’ve sorted it out by now. I’ve been having the same problem, in the end I managed to get something that works however, I can only get the fields to appear in the feed if I input something in the main wordpress post editor. It doesn’t matter what I put there, just so long as there’s something.
I then get all my fields showing up, including images but not the actual content entered in the post editor.
Here’s my code:
function vehicle_info_feed(){ global $post, $id; $vehicle_image = get('vehicle_image', true); $description = get_post_meta($post->ID, 'vehicle_description', true); $content = get_post_meta($post->ID, 'content', true); $price = get_post_meta($post->ID, 'price', true); echo __('<img src="') . $vehicle_image, ('" width="200px"/>'); echo __('<br/>Price: £') . $price, ('<br/>'); echo __('Description: ') . $description, ('<br/>'); } add_filter('the_content_feed', 'vehicle_info_feed');
I know this is probably bad coding; I have no idea what I’m doing with php so just getting my feet wet really (I’m old) but hey it works. ??