How do I automatically generate pages from a database?

Yours is a more general question, so I’ll offer some general comments. There are WordPress plugins such as TablePress (https://tablepress.org) that do a nice job displaying data on a WordPress page. The individual data points can be made linkable to another page, as needed. This is, likely, a custom solution, meaning, a developer could help … Read more

Setting a default text for excerpts of a particular category

Insert the following code, in functions.php of your child theme. function wpse_excerpt_for_specific_category( $excerpt ) { global $post; $category = ‘Test’; // could be name, slug, or id $excerpt_text=”some arbitrary text”; if( ‘post’ == $post->post_type && ‘publish’ == $post->post_status && in_category( $category ) ) { $excerpt = $excerpt_text; } return $excerpt; } add_filter( ‘get_the_excerpt’, ‘wpse_excerpt_for_specific_category’ ); … Read more

Automating Excerpt

The excerpt filter by default cuts your post by a word count, which I think is probably preferable to a character-based substr function like you’re doing, and it strings out tags and images as well while doing it. You can set the number of words to excerpt with the filter excerpt_length (it defaults to 55 … Read more

Email notification of new posts that match query

Utilizing Gravity Forms and the Mailchimp add-on you could do something like the following. This is not tested but should get you going down the right path. Create a “subscribe” link in your template that contains the search parameters. (Perhaps the search parameters are captured from the query string. I’m not sure what works best … Read more

wp_list_categories in in nav_menu

Something along these lines should at least get your started. You’ll need to register the menu first and get the ID. I didn’t get to deleting categories but you’ll need to take care of that as well. This is largely untested. Back up your DB first!! add_action( ‘created_category’, ‘my_update_category_menu’ ); add_action( ‘delete_category ‘, ‘my_delete_category_menu’ ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)