theme_page_templates not working
The theme_page_templates filter is not available anymore, please use the theme_templates filter instead. add_filter( ‘theme_templates’, ‘filter_template_dropdown’ );
The theme_page_templates filter is not available anymore, please use the theme_templates filter instead. add_filter( ‘theme_templates’, ‘filter_template_dropdown’ );
There are plenty of one page themes for WordPress _ here’s a recent link to some of them >>> https://colorlib.com/wp/best-one-page-wordpress-themes/ _ and another one with one page themes that are free >>> https://www.codeinwp.com/blog/free-one-page-wordpress-themes/ i suspect you might be looking for more detail about ‘customizable’ but you would need to clarify your question by giving a … Read more
the child theme should have the file to override the parent theme in the same location. So yes in the same sub-folder location.
I’ll answer myself after having completed my two points in the last few days of work: My plugin, which indeed did all of the data insertion and management work, contained some very handy APIs in its codebase. WordPress does also provide some very great database access APIs (amongst other things) and I can say that … Read more
There are probably several options to achieve your goal, below is one of the options shown by me. (these 2 functions belong to each other) Please make always a copy of functions.php before you start to edit/add a plugin or other code snippet. /** * Remove fields from an user profile page for all except … Read more
Page template seems like a more obscure thing to base the loading of your CSS on. Maybe not use template name, and use page name instead as it’s more apparent to theme users. If interested you could try something more like this: add_action(‘wp_enqueue_scripts’, ‘load_special_page_styles’); function load_special_page_styles() { global $post; if( is_page() ) { switch( $post->post_name … Read more
I think what you’ll want to do – or something like what I’d do in your place – is create a simple WordPress plugin. (I’m bold-facing things that you can search up – lots of material on all of this will be right at your fingertips on the internet, often in detail in the WordPress … Read more
Does the_excerpt() work if you remove the custom functions you have? Firstly, for sanities sake to make sure the excerpt has a value, could you try replacing your current excerpt call with this? <?php echo get_post_field(‘post_excerpt’, $post->ID); ?> If it does work then the problem is most likely related to your custom functions.
You can use the WordPress Template Hierarchy. Copy your category.php file and rename it. category-{slug}.php – If the category’s slug is news, WordPress will look for category-news.php. category-{id}.php – If the category’s ID is 6, WordPress will look for category-6.php. category.php You can also use template_include to conditionally display a template add_filter( ‘template_include’, ‘category_page_template’, 99 … Read more
When you click on an author link generated in the normal way, the server will not know that you only want the custom posts from this author returned. So you will have to tell the server. This is perfectly doable, but a bit too much work to write it down here completely for you. Here … Read more