jaeeun
Forum Replies Created
-
Forum: Plugins
In reply to: [Passster - Password Protect Pages and Content] Shortcode in TemplateThanks, tested and it works with content().
Now I’m trying to apply to what I actually need to protect, which is an iframe that’s displayed through this code
do_action( 'tribe_events_single_event_after_the_meta' )And this is my code
<?php $password = get_post_custom_values('password'); if(!empty($password)){ echo do_shortcode("[content_protector password=". "'".$password[0]."']". do_action( 'tribe_events_single_event_after_the_meta' ). "[/content_protector]"); } else { do_action( 'tribe_events_single_event_after_the_meta' ); } ?>but again, it just shows the iframe anyway before entering the password…this might be beyond your plugin support, but I’d really appreciate if you could help…!
Forum: Plugins
In reply to: [Passster - Password Protect Pages and Content] Shortcode in TemplateI did more research and now I’m using this code:
<?php $password = get_post_custom_values('password'); $protected = the_content(); echo do_shortcode("[content_protector password=". "'".$password[0]."']". $protected. "[/content_protector]"); ?>But this displays the content before the password is entered.
Forum: Plugins
In reply to: [Contact Form 7] [Contact Form 7] Messages Not Showing UpI have tried all of them.
Thanks a lot for looking into it.
This solved it!
http://www.siteparticles.com/allow-shortcodes-in-advanced-custom-fields-sub-field-repeater-field
Hi Gabe,
Thanks for your response.
I have been using the shortcode for a while now, and it stopped working at some point. It was already there when I upgraded WordPress. The shortcode is in an ACF repeater field, and it works if I use it in a regular page.
The page:
http://www.underdonk.com/information/
I’d appreciate your help.
jaeeun
Forum: Plugins
In reply to: [Plugin: Fancybox for WP] Fancybox Stopped WorkingI reset it to default, and now it works again.
Forum: Plugins
In reply to: [Plugin: Attatchements] "Attach" Button Not WorkingNever mind, I had a JavaScript problem. Fixed that, and the plugin works now.
Forum: Fixing WordPress
In reply to: Media Thumbnail Setting Doesn't WorkNever mind, I solved it by re-uploading the images.
Forum: Fixing WordPress
In reply to: How to Make Submenu Show Only in Certain PageI can’t find any other code in page.php…
Forum: Fixing WordPress
In reply to: How to Make Submenu Show Only in Certain PageIs it this code:
<?php wp_nav_menu('title_li=&sort_column=menu_order&depth=2') ?>Forum: Fixing WordPress
In reply to: How to Make Submenu Show Only in Certain PageThanks. I assume that in ( ID ) I put the ID of the page that I want to show the submenu, and put the code in in functions.php? Do I need to replace “submenu-code” with some number, or just put it as it is?
Forum: Hacks
In reply to: How to Correctly EnqueueSuperscrolloramaActually this is the code;
if ( !is_admin() ) { wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"), false); wp_enqueue_script('jquery'); } function loadtweenmax() { wp_register_script('tweenmax', 'http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js', 'jquery'); wp_enqueue_script('tweenmax'); } add_action('wp_enqueue_scripts', 'loadtweenmax'); function loadsuperscrollorama() { wp_register_script('superscrollorama', get_template_directory_uri() . '/js/jquery.superscrollorama.js'); wp_enqueue_script('superscrollorama'); } add_action('wp_enqueue_scripts', 'loadsuperscrollorama'); function loadchart() { wp_register_script('chart', 'http://www.chartjs.org/docs/Chart.js'); wp_enqueue_script('chart'); } add_action('init', 'loadchart'); function loadgoindoor() { wp_register_script('goindoor', get_template_directory_uri() . '/js/goindoor.js', 'jquery'); wp_enqueue_script('goindoor'); } add_action('wp_enqueue_scripts', 'loadgoindoor'); ?>Forum: Fixing WordPress
In reply to: .currunt_page_item not workingI thought it was all resolved, but it’s not…!
It still doesn’t work for “Blog” menu, which is a custom post type. Do I need to use a different tag?
Forum: Fixing WordPress
In reply to: .currunt_page_item not workingThanks you, that fixed it!
I wonder why that is a problem, though…?
Forum: Fixing WordPress
In reply to: pre_get_posts category filter removes custom menu itemsI solved it by changing the last code to this;
add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() && $query->is_main_query()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','Blog'); $query->set('post_type',$post_type); return $query; } }