I am a trying to create a dashboard like custom page template that list post of of the current logged in user. I’ve tried to find a solution on the net. but none were appropriate
I have a difficult question. What’s the best way to load a different header based on a post format? I guess I could load another loop around the header but I noticed the site does slow down. This is the code on my index.php: <?php get_header();?> <section id=”block”> <?php if ( have_posts() ) : while […]
Here is the my custom query ; <?php $Poz = new WP_Query(array( ‘posts_per_page’ => 3, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘no_found_rows’ => true, ‘update_post_term_cache’ => false, ‘update_post_meta_cache’ => false, )); // The Query $the_query = new WP_Query( $Poz ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li><a href=”<?php the_permalink(); ?>” title=”<?php […]
How can I show ‘Read more’ links in rss feed instead of showing excerpt? The settings in reading only allow to choose between full content and excerpt.
So I’m trying to enqueue scripts used for some post formats like video and audio and I could find a way to check what post formats are going to be shown on the page. I tried print_r on some global variables but they doesn’t seems to have post_format in the post details, I tried $posts […]
I am using the function in my own class as I am using other wordpress functions in it. I am unable to understand why it is not able to find the function while ide “go to declaration” point me to file wp-admin/includes/post.php is wp-admin files functions do not exist as global.
While creating our portfolio i’d like to make a dynamic header with the latest 5/6 featured images in a row. All these posts come out of the ‘apps’ custom post type. <div id=”header”> <div class=”latest_post”> <img src=”featured image” class=”class-name” /></div> <div class=”second_post”> <img src=”featured image” class=”class-name” /> </div> <div class=”third_post”> <img src=”featured image” class=”class-name” /> […]
I have create an endpoint so I can do some checkout processing of my cart. Everything is working fine in sense that every thing is hooked up properly. Though I am having issue that to serve the content of my endpoint, I define the_posts filter, where if my “endpoint” is choosen than I check other […]
I am trying to get a custom field value from all posts listed on current blog paginated page. Not sure if it’s clear, let me explain it more. On blog index page (or on second page of pagination) I have 10 posts. And each post have a value for custom field my-field. So I want […]
I have a custom post type of Textorial with necessary template files: textorial-type.php single-textorial.php content-textorial.php The idea is to have a custom layout for the post type and use infinite-scroll to pull them in. That’s why I’m using content.php. I got the infinite-scroll set up,and succesfully tested with regular posts. But when pulling custom post […]