Articles are text-only in any “Category” instead of HTML

The theme uses the_excerpt() instead of the_content(). I had created a child theme before (so I don’t modify the source theme directly: only the child one), so I only had to copy/paste the PHP file (archive.php) from source theme to child theme, and change the_excerpt() for the_content( __( ‘Read more ›’, ‘my-domain’ ) );

UberMenu list current user’s posts as menu items

the_permalink(), the_title() by default echo their value. As you want to store that value in a variable you will need to return the values instead. get_the_permalink(), get_the_title() are two similar functions that return the value instead of echo. So you new code may look something like this: $list=”<li class=”ubermenu-submenu ubermenu-submenu-id-122-col-0 ubermenu-submenu-type-stack”>”; $list .= ‘<a class=”ubermenu-target … Read more

Custom WP_QUERY $args

You can use custom filters in $args (not tested) add_filter( ‘posts_where’, ‘find_by_title_filter’, 10, 2 ); function find_by_title_filter( $where, &$wp_query ) { global $wpdb; if ( $find_title_arg = $wp_query->get( ‘find_title’ ) ) { $where .= ‘ AND ‘ . $wpdb->posts . ‘.post_title LIKE \’%’ . esc_sql( $wpdb->esc_like( $find_title_arg ) ) . ”; } return $where; } … Read more

How to prevent WordPress from updating the modified time?

The question of how to customize which post data gets updated has been answered elsewhere on StackExchange. Here is a specific example of how to stop the modified date from being updated: function stop_modified_date_update( $new, $old ) { $new[‘post_modified’] = $old[‘post_modified’]; $new[‘post_modified_gmt’] = $old[‘post_modified_gmt’]; return $new; } add_filter( ‘wp_insert_post_data’, ‘stop_modified_date_update’, 10, 2 ); // do … Read more

Creating a Page of Posts

Try this code in your page-blog.php to display list of posts $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘post’, //Change this with your post type ‘posts_per_page’ => 10, //No. of Pages to show ‘offset’ => 0, //excluding the latest post if any ‘paged’ => $paged //For Pagination ); $loop = … Read more

The post loop doesn’t work

Go to admin (WordPress Portal) > Settings > Reading, look to “Front page displays” and make sure “Your latest posts” is checked https://codex.wordpress.org/Settings_Reading_Screen

Change default Posts page

This was answered in a previous question: https://stackoverflow.com/questions/31434373/in-wordpress-how-do-i-set-the-default-admin-sort-order-for-a-custom-post-type-t#answer-31520570 This accepted answer will walk you through how to set up the pre_get_posts callback. That would be my recommendation.

Understand post type

You are confusing things a bit, these are post formats, not post types. Formats are a native taxonomy, not a post type. As any taxonomy its primary (and only) functionality is to organize posts in logical groups. Formats don’t do anything on top of that. You need to implement yourself any and all functionality you … Read more