List of pages of a specific user

I have found how to do it. Here is the code: $author_query = array(‘posts_per_page’ => ‘-1′,’author’ => 1,’post_type’ => ‘PAGE’); $author_posts = new WP_Query($author_query); while($author_posts->have_posts()) : $author_posts->the_post(); ?> ■ <a href=”https://wordpress.stackexchange.com/questions/318709/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a> <br /> <?php endwhile; more information: see here

post and page and custom post type

There are many ways of achieving the same or similar outcomes when it comes to WordPress. It is difficult to answer Question:3 without a full overview or gaining more detail into your project. You are correct in your assumptions for question 1 and 2 for the purposes of this context. I’m sure there are many … Read more

how to put post customized in page

Create a custom template page for the archive food-archive.php and then query the posts Learn about custom templates: https://developer.wordpress.org/themes/template-files-section/page-template-files/ Learn about posts queries: https://developer.wordpress.org/reference/functions/query_posts/ the query should pull through permalink, post thumbnail, title, and details (which would possibly your excerpt as per your image)

How can a .css file be applied to a virtual page?

You can hook into wp_enqueue_scripts and use wp_enqueue_style() the same way you normally would, but use the same condition you use to change the template to conditionally enqueue the stylesheet: if ( get_query_var( ‘dump’, false ) !== false ) {} So you you’d load the stylesheet with this method: function enqueue_stylesheet() { if ( get_query_var( … Read more

Static Page with php echo [duplicate]

You need more than just telling the page where to find your theme. You will likely need to load WordPress. You can do that with the following: <?php define(‘WP_USE_THEMES’, false); require(‘./wp-load.php’); ?> Is the clpr_categories_list() a theme function? You could just WP’s wp_list_categories() function to what you need. The function accepts quite a number of … Read more