416BC
Forum Replies Created
-
This is a little over my head. Is there a filter I can add to your short code to only pull certain categories? I can do something like this then.
Cat 1
[shortcode cat=1]
Cat 2
[shortcode cat=2]
Cat 3
[shortcode cat=3]So that any time I add content to those categories it updates? Do I need to change from using your field from categories to using the built in taxonomy for this? I’d perfer to use the built in taxonomy really, I just didn’t see the option originally when I set up the new content type, but now that I know it’s there, I’d like to use that.
I’ve made the change here, but it didn’t seem to change anything.
update_option(CGMP_DB_GEOMASHUP_CONTENT, ''); cgmp_get_content_from_db_by_type("post", CGMP_DB_PUBLISHED_POST_IDS, false); cgmp_get_content_from_db_by_type("page", CGMP_DB_PUBLISHED_PAGE_IDS, false); cgmp_get_content_from_db_by_type("trail",CGMP_DB_PUBLISHED_PAGE_IDS, false); }
Alex, which line do we edit?
Glad I could help.
I didn’t. I have your support system logged in at my work computer. I’ll check back tomorrow. Thanks.
I reported this to them about 24 hours ago on their support ticket system, they are working on it.
Ok, I’m guessing this issue is too hard to diagnose. I’ll just live without gzipping or using a CDN.
Here is a bit shorter and cleaner.
<?php if ((get_custom_field('location_city')) !== ''): ?> <strong>Location: City</strong> <?php print_custom_field('location_city'); ?><br /> <?php endif ?>
This works for me.
<?php $city = get_custom_field('location_city'); if ($city !== ''): ?> <strong>Location: City</strong> <?php echo $city; ?> <?php endif ?>
Forum: Fixing WordPress
In reply to: custom permalinks for a specific category?Would be nice to know what you did, as I’m looking to do the same thing.
Anyone? I haven’t cracked it yet.
Forum: Fixing WordPress
In reply to: No changes taking effect anywhere in backendHello. I fixed my problem about not being able to save new content to the database. The database was in strict mode. I disabled strict mode via the instructions here https://lynnepope.net/turn-off-mysql-strict-mode and it works fine now.
Forum: Fixing WordPress
In reply to: No changes taking effect anywhere in backendI’m having these issues too. It’s mainly trying to create a new users. I can’t do it, it says created, but nothing is there. I went in to the database and added one there, and it works fine, but doing it from WP isn’t working.
Also I’ve installed the plugin “Crony” and that isn’t creating new cron jobs either. I think it’s a permissions issue. We are on a windows server and I tried setting the site install folder to full permissions for everyone, but it’s still not working.