KostRev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Menu not showing correctly with 4.0I was having the same issue. The function was from an old Starkers theme which was missing add_action.
Try this:
https://www.lanexa.net/2013/03/adding-custom-menu-locations-in-wordpress-themes/Forum: Fixing WordPress
In reply to: How to enable mu-plugins?OK, I misunderstood something about the mu-plugins folder. If your mu-plugins are in subfolders, like typical plugins (/mu-plugins/my-plugin/my-plugin.php), you will not see them listed in the WP admin. However, that does not mean they haven’t loaded.
Forum: Fixing WordPress
In reply to: How to enable mu-plugins?The codex specifies the path to be /wp-content/mu-plugins/
Mark Jaquith’s WordPress Skeleton project has a similar structure as does Ben Word’s Roots Soil so the structure would seem to be correct.
My load.php file shows up in the list at WP Admin > Plugin > Must-Use. So that must mean the issue lies in the path to the individual plugins.
The loader file inside mu-plugins looks like this:
<?php /* Plugin Name: Must Use Plugins Loader Plugin URI: https://somewhere.org/ Description: Making sure this works! Version: 1.0 Author: Me Author URI: https://somewhere.org/ */ require WPMU_PLUGIN_DIR . '/my-plugin/my-plugin.php'; require WPMU_PLUGIN_DIR . '/advanced-custom-fields/acf.php'; require WPMU_PLUGIN_DIR . '/wp-post-formats/cf-post-formats.php';
Since I am using WordPress Skeleton I’ve had to define the mu-plugins folder in the wp-config.php like so:
// ======================== // Custom Content Directory // ======================== define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' ); define( 'WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/content' ); // ======================== // Custom MU Plugins Directory // ======================== define( 'WPMU_PLUGIN_DIR', dirname( __FILE__ ) . '/content/mu-plugins' );
If I try to change these paths, either in the wp-config.php or my load.php the page won’t load so it would seem the addressing is correct.
I’m using the plugin but still don’t see the tracking code–Google Analytics says it has not been installed. What am I missing?
Forum: Fixing WordPress
In reply to: “Read more…” link?Agreed, that is what I’ve done as well (use the excerpt field and the the_excerpt template tag) and it works as you have described. I guess I just wish I knew how to meet the conditions of <!–more–> quickcode. It would seem that this option would offer greater simplicity with my template and more control in the admin.
Well thanks for the update. At least I am not the only one having trouble with this.
Forum: Fixing WordPress
In reply to: “Read more…” link?https://codex.www.ads-software.com/Customizing_the_Read_More
This explains what we should be able to do but for some reason the <!–more–> quickcode does nothing.
Forum: Fixing WordPress
In reply to: “Read more…” link?Forum: Fixing WordPress
In reply to: “Read more…” link?I’ve tried adding a “read more” link to my homepage posts and to posts on specific template pages to no avail. If you have content in the admin excerpt field will the “read more” link display?
Forum: Fixing WordPress
In reply to: “Read more…” link?I’ve read the previously mentioned article but still can’t sort out why my read more doesn’t appear on the page. Does the Loop have to look a certain way? Am I missing a function?
Forum: Plugins
In reply to: wpng-calendar: shows nothingHi,
I’m having the same problem and have gone through the steps detailed above but to no avail. I’m wondering if the API key is an issue since I’m using a dev link. I used the dev link URL to generate the key. I also generated one for the domain.Here is my test page. I’ve attempted to add the calendar in the side bar as well as the page body:
https://teen.mam.org.php5-9.websitetestlink.com/test/Any ideas?
Forum: Plugins
In reply to: wpng-calendar: shows nothingHi,
I’m having the same problem and have gone through the steps detailed above but to no avail. I’m wondering if the API key is an issue since I’m using a dev link. I used the dev link URL to generate the key. I also generated one for the domain.Here is my test page. I’ve attempted to add the calendar in the side bar as well as the page body:
https://teen.mam.org.php5-9.websitetestlink.com/test/Any ideas?
Forum: Themes and Templates
In reply to: How to strip tags from the_categoryYou are right! This worked perfectly:
<div class="post <?php $category = get_the_category(); echo $category[0]->category_nicename; ?>" id="post-<?php the_ID(); ?>">
Thanks for pointing me in the right direction.
Forum: Themes and Templates
In reply to: How to strip tags from the_categoryI can’t seem to add that PHP to class=”post without the whole page going blank… I’ll keep at it.
I’ve had some success with this though there is still the anchor that needs to be removed:
<div class="post <?php (strip_tags(":",the_category(','))); ?>" id="post-<?php the_ID(); ?>">
Thanks