How to link ACF relationship field to the new Query block in Full Site Editing
How to link ACF relationship field to the new Query block in Full Site Editing
How to link ACF relationship field to the new Query block in Full Site Editing
It’s easy if all posts are shown on the same page, then you can do: $AZposts = get_posts(array( ‘numberposts’ => -1, ‘post_type’ => ‘post’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘category’ => $cat )); $current = “”; $nav = “”; $postlist = “”; foreach($AZposts as $AZpost) { $firstletter = strtoupper(substr($AZpost->post_title,0,1)); if($firstletter != $current) { $postlist … Read more
I’m going to leave the JavaScript/jQuery of the scroller up to you. But basically, run a loop of dates in that scroller. Then, when clicked, pass that date via AJAX to the server. Then use that date to query_posts, which you then return and insert into your dom. Use http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ for the AJAX functionality. I … Read more
Simply use the term id to replace ” and the taxonomy name to replace get_query_var( ‘taxonomy’ ). echo term_description( $term_id, ‘your_custom_tax_name_here’ ); P.S. Have you ever heard about Codex?
It sends you to the next/prev post by date of been published. I don’t know what gives you these next/prev links and where (single.php, category.php, archive.php or any other custom template file). Without knowing more (some code example) all that I can give to you is this: $page_nr=”&paged=”; $page_nr = get_query_var( ‘paged’ ) ? $page_nr.get_query_var( … Read more
I’ve found a workaround. $content = get_post_field( ‘post_content’, $latest_post[“ID”] ); $content = strip_tags($content); $content = wp_trim_words($content); and then just echo $content instead of the excerpt
Have a look at http://wordpress.org/extend/plugins/simple-yearly-archive/ Or if you want to code it yourself have a look at wp_get_archives http://codex.wordpress.org/Function_Reference/wp_get_archives
http://wordpress.org/extend/plugins/tags/author http://wordpress.org/extend/plugins/author-info-widget/ http://wordpress.org/extend/plugins/author-bio/ http://wordpress.org/extend/plugins/author-exposed/ Or you can use your own custom solution
Try get_terms( ‘product_cat’, ‘parent=” . get_queried_object_id() ) Update: Re-read your question, think I have a better idea: <ul class=”categories”> <?php wp_list_categories( array( “child_of’ => get_queried_object_id(), ‘taxonomy’ => ‘product_cat’, ‘title_li’ => ”, ‘depth’ => 2, ) ) ?> </ul>
Generally this is a plugin that causes this. Best way is to disable them one by one. Maybe the plugin has a template which is overriding it.