“There doesn’t seem to be a wp-config.php file.” despite wp-config.php in root

Looks like you have 2 WordPress installations. One for the main site, other for the Blog. http://parlourdc.com/wp-content/plugins/akismet/readme.txt http://parlourdc.com/blog/wp-content/plugins/akismet/readme.txt If that’s not on purpose, you have a blog folder in your site root that should be renamed/deleted as it contains a blank WordPress. If you made a page on your main site titled Blog (and with … Read more

List all blog categories

Can I use the following code for my question. <?php $args = array(‘taxonomy’ => ‘blogcategory’); ?> <?php $tax_menu_items = get_categories( $args ); foreach ( $tax_menu_items as $tax_menu_item ):?> <a href=”https://wordpress.stackexchange.com/questions/143389/<?php echo get_term_link($tax_menu_item,$tax_menu_item->taxonomy); ?>”> <?php echo $tax_menu_item->name; ?> </a> <?php endforeach; ?> I found it from here Updated: I found the answer I was looking for … Read more

Limit Gutenberg blocks available to users to choose from

In the functions.php file I added add_filter( ‘allowed_block_types_all’, ‘func_allowed_block_types’ ); function func_allowed_block_types( $allowed_blocks ) { return array( ‘core/embed’ ); } Then in my plugin I added this JS to the javascript file to enable only the embed blocks I wanted (Twitter, youTube and Vimeo) wp.domReady( function() { const allowedEmbedBlocks = [ ‘twitter’,’youtube’, ‘vimeo’ ]; wp.blocks.getBlockType( … Read more

Custom URL for all posts in WordPress

Create a page with a custom page template, then create a custom WP_Query object to return your last posts. You can get something like: <?php /* Template Name: Blog Page */ get_header(); $args = array( ‘post_type’ => ‘any’, #all post types ‘posts_per_page’ => 10 #get 10 posts ); $query = new WP_Query( $args ); if($query->have_posts()): … Read more

Detect archive and category page

There are Conditional Tags for this: is_archive() and is_category() respectively. For a custom post type archives you could use is_post_type_archive(). There are many conditional tags available, see above linked codex page. To determine the blog archive you have to additionally check for the post type post, take a look at this question and the answers … Read more

wordpress blog in subdirectory or subdomain

The first option (/blog/) is the easiest: create a new blank page called “Blog” navigate to “Settings > Reading” and choose this new page as the value in the “Posts Page” drop-down Now, when you navigate to the new “Blog” page (which should be at /blog/ unless there is something unusual about your setup), all … Read more