ohlookitsdany
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Creating a Table of Contents block@threadi Nothing is wrong with those plugins, I just wanted to create something myself as a learning experience. But thank you for the insight.
Forum: Developing with WordPress
In reply to: Pattern visibility on click?Yea, I’m trying to avoid adding plugins wherever possible, so I don’t mind the extra time and effort within reason. I’ll take a look at your resources, thanks. ??
Forum: Developing with WordPress
In reply to: Pattern visibility on click?It’s a little bit of both, styling and structure. I’m trying to layout the navigation in columns, kinda. I’ve included a screenshot of the pattern I’ve created to help demonstrate what I’m trying to do.
Basically, when you click the hamburger menu on the navigation block, it pulls up that modal overlay that just has the various links added to the menu. I’d like to style and organize that overlay the way I have in this pattern, but obviously, I can’t do that with the native navigation block, as it doesn’t allow for things like separators and various rows, etc. So, in lieu of that, I was thinking I would just render an SVG of a hamburger menu icon that would toggle the visibility (when clicked) of this pattern in the header template part instead.
Does that make sense?Forum: Developing with WordPress
In reply to: Custom fields in a query loop?Thank you so much, Justin, this looks like EXACTLY what I needed. I know some coding basics, but I’m mostly just self-taught. Working at a nonprofit means having to adapt to resource-scarce environments, hah hah, so I have to kinda learn as I go. I’ll be sure to reach out if I run into any issues.
Forum: Developing with WordPress
In reply to: Custom post types with Twenty Twenty-FourI realized you shared a link about patterns, my mistake. Please ignore that part of my response.
Forum: Developing with WordPress
In reply to: Custom post types with Twenty Twenty-FourCase Studies are a post type (show’s up on the dashboard sidebar as a custom post type) and the type (i.e. which program the entry is a case study for) is a taxonomy. I wrote it a while ago, but I can copy the contents of case-studies.php if that’s helpful.
Currently, dev.living-future.org/case-studies pulls up the general archive page, but if you want to see the archive of a specific type (LBC Taxonomy for instance), it’s dev.living-future.org/program/lbc. I think I was able to change the rewrite in case-studies.php to make it /case-studies/lbc instead, but when I checked that archive page, it threw a 404 instead.
Aso for custom meta data, you mention using patterns. I’m pretty new to the new site editor and block themes, so how do you mean?Forum: Developing with WordPress
In reply to: Custom Meta Box isn’t saving entries@weboccults Oh, that seems like it should be so obvious. I’ve made that edit, and yet I’m still not getting the metadata to save.
function save_custom_meta_box($post_id, $post, $update) { if (!isset($_POST['meta-box-nonce']) || !wp_verify_nonce($_POST['meta-box-nonce'], basename(__FILE__))) return $post_id; if(!current_user_can("edit_post", $post_id)) return $post_id; if(defined("DOING_AUTOSAVE") && DOING_AUTOSAVE) return $post_id; $slug = "case-studies"; if($slug != $post->post_type) return $post_id;
I feel like I must be missing something that’s staring me in the face.
@bcworkz I’m not sure I understand how I would implement your suggestion. Like I said, I know just enough to be dangerous. I’m not fully fluent in WordPress backend quite yet.
Forum: Fixing WordPress
In reply to: Recently migrated site redirecting to old subdomainI’m an idiot. I totally forgot to check and update the SiteName and SiteAlias entries in the Apache Virtual Host files. For anyone finding this and needing help with the same issue, DON’T FORGET TO CHECK YOUR VHOST FILES.
Forum: Fixing WordPress
In reply to: Trouble to add a custom header to my blogHmm…okay. I don’t really have much experience with creating WordPress themes. Are there any resources you could suggest for like…modifying the 2016 theme to just include the header and footer? I’ve already built them with HTML and CSS, but I’m just not sure how to incorporate them with the WordPress blog.
Forum: Fixing WordPress
In reply to: Trouble to add a custom header to my blogNo, I don’t have an IP blocker, that’s strange.
Try those, on port 80. Maybe there was an HTTPS error.