sebgc
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Plugins
In reply to: [WP Search with Algolia] Adding custom fields to indexThere must have been an issue with my variable names – I have since corrected the implemented code and it works as expected, for example:
/* Algolia customisations */ add_filter( 'algolia_post_shared_attributes', 'complyadvantage_post_attributes', 10, 2 ); add_filter( 'algolia_searchable_post_shared_attributes', 'complyadvantage_post_attributes', 10, 2 ); /** * @param array $shared_attributes * @param WP_Post $post * * @return array */ function complyadvantage_post_attributes( array $shared_attributes, WP_Post $post ) { if ( 'resource' !== $post->post_type ) { // We only want to add an attribute for the 'resource' post type. // Here the post isn't a 'resource', so we return the attributes unaltered. return $shared_attributes; } $shared_attributes['call_to_action_url'] = get_post_meta( $post->ID, 'wpcf-call-to-action-url', true ); // Always return the value we are filtering. return $shared_attributes; }
Forum: Plugins
In reply to: [WP Search with Algolia] Adding custom fields to indexAny suggestions for the fix?
Forum: Plugins
In reply to: [WP Search with Algolia] Adding custom fields to indexThanks for the assist. The code is pasted into my theme’s functions.php
Forum: Plugins
In reply to: [Weekly Schedule] Display Schedule via Page TemplateI just added the stylesheet code to my theme style, which works better for my purposes actually.
Forum: Plugins
In reply to: [Weekly Schedule] Display Schedule via Page TemplateIt works – full code is:
<?php echo do_shortcode('[weekly-schedule schedule=1]'); ?>
However this does not include the plugin stylesheet.
Forum: Plugins
In reply to: [Weekly Schedule] Display Schedule via Page TemplateThanks!
Forum: Themes and Templates
In reply to: Where is the 'skip-link' definition?In the Twentyeleven theme, the screen reader link styles are defined as:
/* Assistive text */ .assistive-text { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } #access a.assistive-text:active, #access a.assistive-text:focus { background: #eee; border-bottom: 1px solid #ddd; color: #1982d1; clip: auto !important; font-size: 12px; position: absolute; text-decoration: underline; top: 0; left: 7.6%; }
Viewing 7 replies - 1 through 7 (of 7 total)