Error when searching without any results
You call $page_current_id = get_page_id(); in tube_getcustomfield(). Add a name to this call. This isn’t exactly a WordPress question. 😉
You call $page_current_id = get_page_id(); in tube_getcustomfield(). Add a name to this call. This isn’t exactly a WordPress question. 😉
I think the way I would tackle this would be a non-hierarchical taxonomy. That would allow you to tag the artist and such as well as give you a few fields to work with for basic data input…you also have the ability to expand, should you need it. If you’re going to have a lot … Read more
Make sure that your galleries are set as Links to “Image File” and not to “Attachment Post” for Galleries and images. You’ll find the settings in the image/galleries pop-up window. I’m not familiar with your plug-in but you might need to manually add the fancybox class to each image. Another option is to add the … Read more
Ok I figured this out. The ratings score is stored as a custom field so I created and if statements to check whether the score was less, equal, or greater than 0 and then I can show something accordingly. Here’s how I set it up. <?php $ratings_score = get_post_meta($post->ID,’ratings_score’,true); if ($ratings_score < 0 ) { … Read more
Never mind…i found the CODE (with the help of Alex Rabe), it is as follows: <?php echo get_permalink( $image->pageid ) ?>
You can use the has_tag function in a conditional statement to achieve what you want. Take a look at the codex page here: Function Reference/has tag. This isn’t 100% tailored to your specific question, but you should see how it’s working and adjust for your specific task: <?php if( has_tag() ) { ?> <?php query_posts( … Read more
wp_nav_menu() pulls from the menus selected/generated in Appearance -> Menus. There will be one <li> for each item in the menu you select.
The beautiful thing of WordPress (In my opinion) is that you can make almost any website and only have to make a theme and or plugin(s). You can change a theme, delete things, extend etc. Or you can make a child theme, leaving the original theme intact and overwriting default behavior in a different place. … Read more
For plugins it is: $plugin_url = plugin_dir_url( __FILE__ ); This works even if wp-content is on a separate domain. You may get problems if your class is in a subdirectory of the plugin – you should probably make the __FILE__ a parameter for a function: public function get_plugin_url( $base = __FILE__ ) { return plugin_dir_url( … Read more