Uncode theme, create author page and author link under the blog

before making edits, please consider to create a child theme for your customization; https://developer.wordpress.org/themes/advanced-topics/child-themes/ to show a link to the author’s page (https://developer.wordpress.org/reference/functions/get_author_posts_url/), put this code into the loop of the blog or post template file below the blog post code (please contact the theme’s developer for help with where in what file of your … Read more

Static page with formatted post list

The only way I can think of to achieve this without any custom coding is if your theme already displays Category descriptions. When you edit a Category, there is a “description” field where you would place the static information. However, many themes don’t display this information. So, if you try adding a Category Description in … Read more

HOW TO Insert Existing PHP Code to WOrdPress

Generally speaking, you can typically take PHP code and place a comment at the top: <?php /* Plugin Name: My SOAP Plugin */ ?> You can then create a folder for the plugin inside /wp-content/plugins/ (for example, /wp-conten/plugins/my-soap-plugin/) and place the PHP file inside that folder. At that point, you can activate the plugin from … Read more

Force template on page load

This question is quite difficult to understand. Do you mean you want to make generic template pages Programmatically? There are a few ways to do this. If you have a page built on the backend, you can create a file within your theme folder called page-{page-name}.php. For instance, for a page called about, you should … Read more

Not for profit membership site on WordPress

When you publish a post or page on WordPress you can set the status to Private. This means that this content is only viewable to registered and logged in users. You can then restrict files to the person who uploaded them (or disable upload for non-admin). Here is an example of how to do that. … Read more

Display post of specific category on page

There’s nothing in your code that outputs anything for each post. That’s not what $arr_posts->the_post(); does. You need to use template tags like the_title() and the_content() to output those fields: while ($arr_posts->have_posts()) { $arr_posts->the_post(); the_title( ‘<h2>’, ‘</h2>’ ); the_content(); }

Pagination in category.php not functioning

if your aim is to restrict the category archive to your post_type ‘video’ and to 6 posts per page, do not edit category.php, rather use ‘pre_get_posts’ https://developer.wordpress.org/reference/hooks/pre_get_posts/ example code for your case: add_action( ‘pre_get_posts’, ‘category_post_type_video_custom’ ); function category_post_type_video_custom( $query ) { if ( ! is_admin() && $query->is_main_query() ) { // Not a query for an … Read more

Where can I find the “add_action()” inside a theme?

There can be a case that theme implements hooks via do_action(“action_name”) but it’s not forced to bind actual actions to it, as theme’s developers might just did it to make theme more extensible, and in fact never use it inside theme. So you can just bind your own code via add_action(“colormag_before”, “your_function_name”) in a child … Read more