Jacob Dubail
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Popular Posts] "Custom HTML Markup" inserting anchor automaticallyCan I do the same for the {thumb}? It gets auto-wrapped as well, it appears.
-J
Forum: Plugins
In reply to: [WordPress Popular Posts] "Custom HTML Markup" inserting anchor automaticallyThanks Hector! Much appreciated!
-Jacob
Hi Kanika,
I’m not actively developing this plugin at the moment. If you’d like to call the javascript manually, I’d recommend doing it at the end of your document instead of in the <head>. You may want to look doing a custom implementation, at that point.
Good luck!
-Jacob
Forum: Plugins
In reply to: [POST2PDF Converter] [Plugin: POST2PDF Converter] Add to templateI’d like to do the same. I’ve tried this:
echo do_shortcode( '[pdf]Download PDF[/pdf]' );
But that doesn’t seem to work.
-J
Hey teamadesign,
Sorry for the lack of updates as of late. I’ve been a huge slacker with this plugin. Too busy with client work. I definitely owe the community an updated version!
-J
Hey brimful,
Do you have a link to share with us? Do you know how to use your browser developer tools to see if there are any javascript errors on the page? Does your theme include the wp_head() and wp_footer() functions?
-J
Forum: Fixing WordPress
In reply to: Sorting by custom fields with the posts_orderby filterI’ll give it a try right now. Did you update to 3.4, yet?
Forum: Fixing WordPress
In reply to: Sorting by custom fields with the posts_orderby filterI cleaned out a bunch of commented functions that I use on some sites. It’s kind of a catch all functions.php that I use on all my sites. Would you like me to repost with all of the commented code?
-J
Forum: Fixing WordPress
In reply to: Sorting by custom fields with the posts_orderby filterYou’re quick! Much appreciated.
When I remove the new code, everything works fine.
Thanks again for your help. This topic has eluded me for some time.
-J
Forum: Fixing WordPress
In reply to: Sorting by custom fields with the posts_orderby filterThanks vtxyzzy,
I really appreciate your response!
Here’s what I’ve done:
in my front-page template:
$args = array( 'post_type' => array( 'projects', 'post' ), 'posts_per_page' => -1, 'post_status' => 'publish' ); $mam_global_fields = ', IFNULL(pm.meta_value,0) AS sort_key'; $mam_global_join = " LEFT JOIN $wpdb->postmeta pm ON (pm.post_id = $wpdb->posts.ID AND pm.meta_key = 'code')"; $mam_global_orderby = 'sort_key DESC'; $projects = new WP_Query( $args );
In my functions.php:
function mam_posts_fields($fields) { ???global $mam_global_fields; ???if ( $mam_global_fields ) { $fields .= ( preg_match('/^(\s+)?,/', $mam_global_fields) ) ? $mam_global_fields : ", $mam_global_fields"; } ???return ( $fields ) ? $fields : ''; } function mam_posts_join($join) { ???global $mam_global_join; ???if ( $mam_global_join && $join ) { $join .= ' ' . $mam_global_join; } ???return ( $join ) ? $join : ''; } function mam_posts_orderby($orderby) { ???global $mam_global_orderby; ???if ( $mam_global_orderby && $orderby ) { $orderby = $mam_global_orderby; } ???return ( $orderby ) ? $orderby : ''; } add_filter( 'posts_fields', 'mam_posts_fields' ); add_filter( 'posts_join', 'mam_posts_join' ); add_filter( 'posts_orderby', 'mam_posts_orderby' );
When I load the page, I get an error:
Parse error: syntax error, unexpected T_VARIABLE in …/wp-content/themes/ncm/functions.php on line 246
Which is this variable: global $mam_global_fields;
Can’t find any syntax errors, but no matter what I do, I can’t get the page to load with this code. Any ideas?
Thanks again,
JacobForum: Fixing WordPress
In reply to: Sorting by custom fields with the posts_orderby filterHey guys,
Picking up this thread. Hopefully someone will be able to help.
Here’s my query:
$args = array( 'post_type' => array( 'projects', 'post' ), 'posts_per_page' => -1, 'post_status' => 'publish' 'orderby' => 'meta_value', 'order' => 'DESC', 'meta_key' => 'code' ); $projects = new WP_Query( $args );
My problem is the posts don’t have the meta_key of code so they won’t appear in my loop. I’m thinking that I can use the posts_orderby filter along with a couple other filters to get the job done. Only problem, I can’t figure out how to setup the filters. Any help?
Many thanks,
JacobHi Ziassan,
Any chance you could share a link to the site? It sounds like either a z-index issue or a javascript error.
Thanks,
JacobForum: Plugins
In reply to: [AnythingSlider for WordPress] [Plugin: AnythingSlider for WordPress] Broken.Hi abdulmannan, Could you share a link to your site so we can see what is happening? It may be a javascript error.
Thanks,
JacobHey Jeff,
You mention manually changing the permalinks. What do you mean by this? I’m getting a 404 error now as my login page is a child page.
Thanks,
JacobForum: Plugins
In reply to: [Plugin: Anythingslider] Reloading page on clickHi 15challenger,
Have you set the Video Options in the plugin settings area?
I’m not sure that those video hosts are supported, yet. Here is the Demo Page for video: https://proloser.github.com/AnythingSlider/video.html#&panel1-1
When you embed the slider, you have the option to select from which category to play slides. If you can’t find the option, let me know.
-Jacob