Elementor Image Hover + Filter Grid [closed]
Elementor Image Hover + Filter Grid [closed]
Elementor Image Hover + Filter Grid [closed]
There’s a filter in place specifically for tag links, can be found in source here. http://core.trac.wordpress.org/browser/tags/3.0.4/wp-includes/category-template.php#L780 It’s the first function you see on the above link, and it’s this line that provides a hookable filter. return apply_filters( ‘tag_link’, $taglink, $tag_id ); Here’s an example of hooking a function to that hook.. add_filter( ‘tag_link’, ‘new_tag_link’, 100 … Read more
I dont know, but you can hide via css or javascript the areas; via css: #id_or_.class_of_elemet { display:none; }
$tags = get_the_tags(); $tag_links = array(); foreach((array)$tags as $tag) $tag_links[] = ‘<a href=”‘.get_tag_link($tag->term_id).'” rel=”tag”>’.str_replace(‘ ‘, ”, $tag->name)).'</a>’; echo implode(‘, ‘, $tag_links);
<?php global $query_string; ?> <?php if (is_home()) query_posts($query_string . ‘order=DESC&orderby=modified’); ?> Try the above code in your index.php. Put it just above: <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
I’m not sure I have enough info for this to work as you expect. I can tell you that what you are using won’t work for a few, regardless of the filters you use. First error: You are using brackets that aren’t closed Second, you are using if have posts… but then you reset it … Read more
solution 1: this can be done by adding the drop down menu to the search form.eg cat_slct create a search template if its not exist in your theme. add an if statement at the top of the page and directly after get_header(); – if(isset($_POST[‘cat_slct’])){ //make the query using the name of the categoty you’v just … Read more
Please have a read on how to work with filters and actions (I’m not repeating it here). The filter in a theme or plugin // inside /wp-includes/taxonomy.php on line 1586 $value = apply_filters(“edit_{$taxonomy}_{$field}”, $value, $term_id); // inside some theme file that runs before – best on functions.php during your themes bootstrap: function wpse40709_edit_tax_field( $value, $term_id … Read more
I think I managed to solve this. What I did was to add the following in my functions.php file: add_filter( ‘posts_where’, ‘exclude_my_posts’ ); function exclude_my_posts( $where ) { global $wpdb; // For the front page. Hide posts with “efter15” set to “Ja”, and only show posts with “show_on_front_page” set to “Nej” if (is_front_page()) { return … Read more
<?php if ( bp_has_activities(‘action=new_forum_post,new_blog_comment,new_blog_post,friendship_created,joined_group,created_group,new_forum_topic’) ) : ?> Found the solution myself 🙂