Borneyak
Forum Replies Created
-
Great! I will certainly take a look at that beta version. ACF can group fields in tabs, tables etc.. in general. Not only in option-pages. I think it’s a good thing if Pods could adopt these layout methods too.
- This reply was modified 3 years, 6 months ago by Borneyak.
I will take a look there, but as it’s a topic from 2017 (i’ve seen more topics around this on the web) i kinda hoped this would be in there. This is one thing where plugin ACF is better.
Yes, that was enabled. I don’t what has changed, but somehow the Yoast fields are back.
Forum: Plugins
In reply to: [PDF Embedder] How to print a PDF-file from an embedded PDF?Thanks for your answer. I was already afraid that i needed the premium version for it. Now it’s clear.
Forum: Plugins
In reply to: [CMB2] text_time return empty, database contains right valueIt’s solved. My mistake was that i used the php date() to return the time. That was not needed. Removing the date() solved my problem.
Forum: Plugins
In reply to: [CMB2] Use the right language in CMB2Thanks for the reply. I will dive into it. And translate it myself if it’s not fully translated.
(Darn… I hate it when i can’t edit older posts here… ?? )
The shortcode works as in it serves me events, but it does not recognize the slug i entered.
This is not working. This serves me a PHP error…
echo EM_Events::output( array( 'post_category'=>'this_is_my_slug' ) );
This is not working either, but this time it says it cant find any events:
echo EM_Events::output( array( 'post_category'=>'this_is_my_slug' ) );
This works, but has nothing defined:
echo EM_Events::output();
How can i get this working?
The shortcode works. It was an error on my side. Probably a copy-paste error…
It works now.I need a #-shortcode (or something different) to use inside Event Manager’s event page template styling.
Not possible? You can do this:
Put the same shortcode multiple times with different categories on the same page, like this:
[events_calendar category="one-category,two-category"]
[events_calendar category="three-category,four-category"]
That gives two calendars on the same page.
Another question i got:
Are there shortcodes for custom taxonomies? Like #_EVENTNAME, but then to call custom taxonomies like the Post Category example?-Update-
Adding the post categories to Event Manager with the info in that link works like a charm! Thanks for that.Only one problem left now. That shortcode thing described on that page isn’t working for me. I registered the taxonomy for EM_POST_TYPE_EVENT and event-recurring, but not locations (i don’t need that).
The provided code on that page isn’t working for me:
echo EM_Events::output( array('post_category'=>'post-category-slug-here') );
Instead i did this:
echo do_shortcode( '[events_list post_category=”post-category-slug-here”]' );
No errors this time, but it’s not showing the category i provided. I just get a No events found message instead.How to fix that?
- This reply was modified 7 years ago by Borneyak.
Exactly. I don’t want to enter categories twice.
I have a category template page which shows all posts from that category. But i need to add a event calendar in that category template as well. So i want add the event calendar by shortcode and have the template fill in the category for that dynamically. But i need post categories for that to be able to that. I don’t have control over those categories as some might added or removed in the future.
Forum: Plugins
In reply to: [Colorful Categories] Can’t retrieve color using rest api ?If it may help you, Mildful, i made the following function inside my themes functions.php to grab the color code for the category.
function insert_post_color() { global $post; $postcat = get_the_category( $post->ID ); if ( ! empty( $postcat ) ) { $post_color = get_term_meta( $postcat[0]->cat_ID, 'cc_color', true); } else { $post_color = '#00659F'; //Return a default or fallback color if no colors exist } echo $post_color; }
Usage: Post the following code anywhere between php tags in a post, page or custom posttype which has categories. The function has a fallback if there aren’t any colors found.
insert_post_color()
It’s quite stupid actually. The example uses this ’-character + “-character and you need this ‘-character. Yes, there is a difference between them, but hardly to see.
This is the right one:
[dynamictext dynamicname "CF7_get_post_var key='title'"]
Hmm… Too bad then.
Can i Feature request this then? I think this might be helpful in some cases.
- This reply was modified 8 years ago by Borneyak.