brennenlb
Forum Replies Created
-
Hi, I am having this problem too. Any solution yet?
Forum: Plugins
In reply to: [Mongoose Page Plugin] Activity Feed not ShowingAwesome. Thanks for your help!
Forum: Fixing WordPress
In reply to: Automatically add Alt Tag to WordPress Image UploadsThat worked perfectly! Thank you so much for your help!
Forum: Fixing WordPress
In reply to: LoginSeems like there may be a space or something unexpected after the closing PHP angle bracket. Check line 51 of that file and see if there’s a space after the term
?>
If there is, delete it and upload to the site. Hopefully that will fix it.Forum: Fixing WordPress
In reply to: Adding a post to a specific areaHey! Welcome to WordPress! Sorry it took a while for anyone to get back to you, let’s see if I can be of any assistance. The best method I can think of to accomplish this will require a bit of customization to PHP files, but all you really need to know how to do is editing and uploading files to the FTP and you have to be a decent computer user.
Here’s how we’re going to attack this:
- 1. Assuming you don’t have a post type already, let’s go ahead and create (register) a custom post type for the food items. That’s going to require adding some code to your theme’s
functions.php
file. In it’s simplest form, the PHP is going to look like this:add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'dishes', array( 'labels' => array( 'name' => __( 'Dishes' ), 'singular_name' => __( 'Dish' ) ), 'public' => true, 'has_archive' => true, ) ); }
If you’d like, you can always read up on customizing this function here: https://codex.www.ads-software.com/Post_Types
- Okay, now that we’ve taken care of that, we can create a custom taxonomy for that. We’ll call this one “cuisines.” Add this right below the
register_post_type
function you just added to yourfunctions.php
file:function add_custom_taxonomies() { register_taxonomy('cuisine', 'dish', array( // Non-Hierarchical taxonomy (like tags) 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Cuisines', 'taxonomy general name' ), 'singular_name' => _x( 'Cuisine', 'taxonomy singular name' ), 'search_items' => __( 'Search Cuisines' ), 'all_items' => __( 'All Cuisines' ), 'edit_item' => __( 'Edit Cuisine' ), 'update_item' => __( 'Update Cuisine' ), 'add_new_item' => __( 'Add New Cuisine' ), 'new_item_name' => __( 'New Cuisine Name' ), 'menu_name' => __( 'Cuisines' ), ), 'rewrite' => array( 'slug' => 'cuisine', 'with_front' => false, // Don't display the dish base before "/cuisines/" 'hierarchical' => false ), )); } add_action( 'init', 'add_custom_taxonomies', 0 );
Well, that’s about it. Now you can use those taxonomy pages as the single cuisine and show all of the posts on a single page by following this thorough guide: https://www.wpbeginner.com/wp-tutorials/how-to-create-an-archives-page-in-wordpress/
Good luck! Hope this helped
Forum: Fixing WordPress
In reply to: Automatically add Alt Tag to WordPress Image Uploads@cedcommerce Thanks for your answer! Do you mind pointing me in the direction of the file that I should edit? I assume it would be in the WordPress webroot directory, rather than the theme directory. Thanks
- 1. Assuming you don’t have a post type already, let’s go ahead and create (register) a custom post type for the food items. That’s going to require adding some code to your theme’s