Forum Replies Created

Viewing 15 replies - 1 through 15 (of 100 total)
  • Thread Starter Gemfruit

    (@gemfruit)

    That looks like exactly what I need. I’m currently only running a local setup using Vagrant and a custom theme using the Genesis framework, so no harm running that code.

    I found this article here – https://gregrickaby.com/2016/06/modify-wordpress-custom-post-type/

    The author is doing something very similar to what you’re suggesting, but I noticed at the bottom that it uses a function to merge the arrays – how does that work? If the new array values change what’s in “supports”, or has a different rewrite (say, to an existing CPT already using a rewrite), which is used? Just want to make sure I understand why I would merge (vs just completely rewrite everything, if that’s how it works), and which values are used if I do merge.

    Thanks again for pointing me in the right direction! I usually have a lot of trouble finding information on more advanced issues like this (although it’s been years since I’ve asked), so I appreciate it a lot.

    Are you using the function do_shortcode() ?

    Simply writing out the shortcode, like below, won’t work:

    [ai1ec view='posterboard']

    You need:

    echo(do_shortcode("[ai1ec view='posterboard']"));

    If you’re trying to use the shortcode in a text widget, you’ll need to add this filter in your functions.php file:

    add_filter('widget_text', 'do_shortcode');

    Thread Starter Gemfruit

    (@gemfruit)

    I’ve just updated another website, with the same configuration, and disabling shortcodes ultimate fixed it. Again, I’ve semi-extensively tested this, and would love to know your thoughts.

    I purchased all add-ons and would love to use them, but that’s not looking possible at the moment.

    I currently have a site running on a VPS, and when I try to visit the Updates or plugins page, nginx throws an error. I finally got in and disabled all plugins, and this fixed the issue, so I updated to 4.4. I began updating plugins 1 by 1, and only after SU was activated did the issue come back, I occasionally (not all the time) can’t visit plugins or update, but everything else on the site works.

    Due to the inconsistency, I’m trying to test more, but it seems to be this plugin. I’ll update further if I learn anything else.

    Thread Starter Gemfruit

    (@gemfruit)

    I’ve now got the conditionals working, but because of duplicate slugs, I can’t get the structure working. I have:

    ite.com/dining (works)
    site.com/dining/specific-location (404)
    site.com/dining/custom-term-a (works)
    site.com/dining/custom-term-b (works)

    I refuse to believe this isn’t possible, it’s so basic, and so logical. Let me add that I also don’t need WordPress to do anything with these by default, I’m adding my own templates, so “messing up default behavior” isn’t an issue, I just need those urls to work. There must be a rewrite rule, or something out there, that will allow this.

    Thread Starter Gemfruit

    (@gemfruit)

    I changed the rewrite slug of my custom taxonomy to “dining_types” instead of dining, and my conditional works now. This means that my custom post of “dining” is somehow conflicting with the rewrite slug of “dining” for my custom taxonomy.

    Between with_front, hierarchical, and the rest of the information I’ve taken in, I’m completely swamped / stumped. I feel like this should be relatively easy to achieve, but I just can’t get it. If anyone could lend me a hand in putting this multi-week nightmare to rest, I’d be extremely grateful.

    Even if caching works, initial slow loading is unacceptable, and punished both by the average user, and search engines.

    Thread Starter Gemfruit

    (@gemfruit)

    They’re not meant to be shared, they’re just sort of the same idea. They’re essentially “Categories”, but each specific to one specific Custom Post Type. So I assume I should just prefix them with the CPT?

    Thread Starter Gemfruit

    (@gemfruit)

    I’ve confirmed this issue is only with the latest version of WordPress. I tested a backup of the site on another domain, which uses the previous version of WordPress from 2-3 months ago, and it works perfectly.

    Any help with this would be greatly appreciated.

    Thread Starter Gemfruit

    (@gemfruit)

    The url structure is mostly important because of the way I want the breadcrumbs to work. site.com/lodging is the main hub, that’s where you’ll see everything related to lodging, in a very customized, non-directory like page. From there, you can click on any sub-type, and go to a directory style page of all hotels, all inns, etc, so the url structure just seems more logical that way. If a user is looking at hotels, I want it to be easy for them to use the breadcrumbs to go back to the main hub, and switch to inns.

    That being said, your structure for the types sound correct, it’s just the urls I would have to worry about. I believe I should be able to achieve the url I want by writing some custom code with the re-write API, as it’s made for situations just like this. In addition, there’s the with_front property of custom post types and taxonomies, which may give me further ability to get it working, I’m just not sure exactly how.

    Thread Starter Gemfruit

    (@gemfruit)

    I could still really use some help with this. I’m at a brick wall with the development of my website until the permalink structure is decided upon, and the custom post type / taxonomy(s) structure is crucial to that.

    I was reading about the “with_front” property tonight, and I feel like that could help me out here somewhere. I know the answer exists, I just can’t wrap my head around it, and I’m incredibly burnt out from trying. Feel free to just offer information, suggestions, or anything that could help me snowball into a solution.

    Thread Starter Gemfruit

    (@gemfruit)

    Well, they would actually be more like “pages”, not posts. I’m using Advanced Custom Fields to add a lot of functionality that posts could never do, such as:

    -Determine if a restaurant has dine in, take out, delivery.
    -Assign the location to a “city” field (drop down).
    -Determining if a location is a Bar, Restaurant, Hotel, or more than one (for querying purposes).
    -Assigning specific text fields for the templates (description 1, description 2, images, etc).

    I’m not creating a blog, I’m essentially creating a specialized version of something like Yelp for a specific area. Every business is static, more like a page, where as posts are specifically for articles, news, etc.

    The other HUGE reason to use custom taxonomies / custom post types, is for organization on the admin panel. With 100+ businesses of various categories, having them all reside under the “page” or “post” sections of the dashboard is sloppy. I need to be able to go to the Restaurants section, see just restaurants, and add a new restaurant if desired.

    Is that enough reason to use custom post types / custom taxonomies?

    Check out the images in this article. There are drop down to see specific items, sort by fields, etc, that’s what I want. I want to be able to be under “venues” or “restaurants”, and sort through top level categories for the former, or sub-level categories for the latter.

    These sound like valid suggestions to me. I’m just now looking into responsive images and WordPress, and I’m a bit disappointed that there still isn’t a “proper” solution yet, especially in core. A tad off topic, but if you could link me to any information about the WordPress Core addressing this, I’d love to read it. I have to take some pretty decent performance hits due to the lack of proper responsive images, and I’d love to see it addressed sooner than later.

    While you may not have access to the Dashboard, do you at least have access to your server? If you can access your server (on GoDaddy), you should be able to directly modify the database, grab the password, etc. Your website is definitely safe, you just need to crack the puzzle of how to get in. I’m 100% certain you don’t need to rebuild it though.

    Thread Starter Gemfruit

    (@gemfruit)

    I had tried twice, but it did indeed just work now – thanks!

Viewing 15 replies - 1 through 15 (of 100 total)