Forum Replies Created
-
AuthorPosts
-
December 11, 2018 at 10:42 pm in reply to: Exclude posts (or cpt, attachments, comments) by categories/taxonomy terms #20361
NaturesLens
ParticipantThanks Ernst – you are a rockstar!
December 11, 2018 at 10:37 am in reply to: Exclude posts (or cpt, attachments, comments) by categories/taxonomy terms #20345NaturesLens
ParticipantYou cannot access this content.
December 11, 2018 at 10:35 am in reply to: Exclude posts (or cpt, attachments, comments) by categories/taxonomy terms #20344NaturesLens
ParticipantYou cannot access this content.
NaturesLens
ParticipantOk – thanks
NaturesLens
ParticipantPerfect – Cheers Ernest
NaturesLens
ParticipantCheers Ernest
NaturesLens
ParticipantThe other image
NaturesLens
ParticipantSaw it – thanks – got another couple of queries – will open a new ticket
NaturesLens
ParticipantOK – cool
NaturesLens
ParticipantThat snippet fixed it – thanks
This page on your site – https://wp-dreams.com/knowledge-base/events-search-the-events-calendar/ – I wanted to have a read of it, but it comes up blank for me
January 19, 2018 at 4:52 pm in reply to: Executing shortcodes in Advanced Title Field & Advanced Description Field #16414NaturesLens
ParticipantSuperb – thanks – that made it a lot easier – my shortcodes can be called as functions as well – so – I came up with this:
add_filter(‘asp_results’, ‘asp_add_event_details_to_search_content’, 10, 1);
function asp_add_event_details_to_search_content($results)
{
foreach($results as $k => & $r)
{
$append = ”;if ($r->content_type != “pagepost”) continue;
$cost = tec_cost($r->id);
$location = tec_full_location($r->id);
$duration = tec_formatted_schedule($r->id);if ($cost !== ”)
{
$append = $append . $cost;if ($location !== ”)
{
$append = $append . ‘ – ‘;
}
}if ($location !== ”)
{
$append = $append . $location;if ($duration !== ”)
{
$append = $append . ‘ – ‘;
}
}if ($duration !== ”)
{
$append = $append . $duration;
}if ($append !== ”)
{
$append = ‘<div class=”additional_search_meta”>’ . $append . ‘</div>’;
}$r->content = $r->content . $append;
}return $results;
}And that results in the results looking like the attached
NaturesLens
ParticipantSorry for the delay – that is perfect – I just implemented it and now I can CSS prefix to my hearts delight
Many thanks
NaturesLens
ParticipantOh – and Happy Christmas!
NaturesLens
ParticipantAll working now – looks great – for adding the icon before the event name – how about – in the class of the href, insert a sanitised name of the custom post type – that way I can identify it in CSS and use a :before statement against it
Do you think that is a valid suggestion?
NaturesLens
ParticipantAlmost there – I still have slight positioning errors
-
AuthorPosts