get_stylesheet_uri returns wrong path

I am using the roots theme. Inside scripts.php, the stylesheets are loaded using the wp_enqueue_style-function. wp_enqueue_style(‘roots_bootstrap’, get_template_directory_uri() . ‘/assets/css/bootstrap.css’, false, null); wp_enqueue_style(‘roots_bootstrap_responsive’, get_template_directory_uri() . ‘/assets/css/bootstrap-responsive.css’, array(‘roots_bootstrap’), null); wp_enqueue_style(‘roots_app’, get_template_directory_uri() . ‘/assets/css/app.css’, false, null); I tried to add my own stylesheet (style.css, it can be found directly inside the template folder) the same way: wp_enqueue_style(‘fsc’, get_stylesheet_uri(), … Read more

Incorrect 404 for pages when using permalink, a static front page, and posts page

I am having an issue with my permalink setup, which I think has to do with my setup, rewrite rules, and more. Under Settings->Reading, we have a static Front Page set as well as a Posts page (Home and News, respectively). Under Settings->Permalinks, I have a custom one set up as /news/%postname%/. Basically, I want … Read more

`post_type` => `any` not giving me my custom post

I’m using Roots Bedrock + Sage 9 Beta 3. I’ve created a custom post of type lp that I want to set as my homepage. Here is the code I’m using: function cptui_register_my_cpts_lp() { /** * Post Type: Landing Pages. */ $labels = array( “name” => __( ‘Landing Pages’, ‘sage’ ), “singular_name” => __( ‘Landing … Read more

Failure to establish connection when provisioning via ansible-playbook server.yml

I’m using Root.io‘s Trellis workflow. I’ve encountered an error wherein I couldn’t establish a connection via ansible-playbook. When I run ansible-playbook server.yml -e env=staging it throws me an error that the ssh connection cannot be established so I checked my users.yml file and saw a problem under the keys section: – name: “{{ admin_user }}” … Read more

Getting Permalink within the loop

I have a (Roots/Sage-based) theme with a home.php template override and on that page am displaying excerpts and featured image for each post. <?php while (have_posts()) : the_post(); ?> <div class=”.container-fluid”> <?php if (get_post_type() == ‘instruments’) {?> <div class=”col-md-3″> <h1><?php the_ID(); ?></h1> <a href=”https://wordpress.stackexchange.com/questions/188719/<?php get_post_permalink(the_permalink()) ?>”><?php the_post_thumbnail( ‘medium’ ); ?></a> <?php get_template_part(‘templates/content’, get_post_type() != ‘post’ … Read more