JulieMarie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display number of posts within category typeThe post type is recipe and I’m trying to display the specific recipe type that I’ve created with the slug of “premium-recipes” and the tag_ID of 146.
I tried<?php $args = array( 'tag__in' => array( 146 ), 'post_type' => 'recipe' ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; ?>
which displayed all posts within the type recipe
then I tried<?php $args = array( 'tag_ID' => '146', 'post_type' => 'recipe' ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; ?>
I also tried substituting
'tag_id' => '146',
and
'tag_id' => 146,
which also displayed all posts within the post type “recipe”
I’m beginning wonder if displaying posts with a certain tag_ID and post type is even possible.
Thank you for your help so far.Forum: Fixing WordPress
In reply to: Display number of posts within category typeThe post type is “recipe”
The tag_ID is 146 and the slug for that tag is premium-recipesI would like to display the number of posts with the premium-recipes slug (or the tag_ID 146) within the recipe type, “recipe”.
Right now I can only display every post within the post type, “recipe”.
Thanks for asking for clarification
Forum: Fixing WordPress
In reply to: Display number of posts within category typeThank you immensly bdbrown!
After reading through your links and researching on my own for all day I was almost able to solve both questions.
First I came up with the following code that works great for displaying the number of posts within a the regular category Premium Archive:
<?php $args = array( 'cat' => 173 ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; ?>
I could also display all posts within the post type “recipe” with the following code:
<?php $args = array( 'tag__in' => '146', 'post_type' => 'recipe' ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; ?>
However I am unable to specify the recipe type as premium-recipes since WP_Query doesn’t recognize the slug ‘premium-recipes’ or tag_ID=146.
You’ve been a great help so far, do you have any other suggestions that will allow me to specify the type of recipe that is counted?All the unwarranted negativity aside, is there some way to definitively test whether or not this plugin is compatible with my site and/or theme prior to installation?
It would be awesome to use this plugin the way it’s intended. Thank you kindly for creating it. You are awesome (regardless if I can apply it in my case or not) If there is some way to asses compatibility my site is Here
Forum: Plugins
In reply to: [WooCommerce] State / Province doesnt change on shipping optionsThanks for the prompt response! The state box auto-populates to provinces when Canada is selected if using firefox. The box will not auto populate when using chrome. Do you have any other suggestions?
Thanks again!
Forum: Plugins
In reply to: [WooCommerce] State / Province doesnt change on shipping optionsHi,
I’m experiencing a similar problem. My customers must manually refresh after selecting their country in order for the state box to populate with the respective country’s provinces, states etc. After spending a few days on this issue I have not read anything applicable to my situation. Any assistance would be greatly appreciated.
I’m using the Food Recipes theme on https://protectivediet.com
Forum: Hacks
In reply to: Image map in header no recognized in ChromeThat worked perfectly Thanks!
Forum: Plugins
In reply to: [Auto Affiliate Links] Add links to custom fieldsI want it to display the excerpt using the the_excerpt() function. It doesn’t work properly, the page takes a long time to load and the add_filter(‘get_the_excerpt’, ‘wpaal_add_affiliate_links’); line of code is at the top. Maybe I’m not sure that I put the filter line of code in the correct location on the functions.php file. Thank you so much for getting back to me and helping me through this.
Forum: Plugins
In reply to: [Auto Affiliate Links] Add links to custom fieldsHow do I add excerpt field capabilities?
Forum: Plugins
In reply to: [JM Twitter Cards] Twitter Card Field in Custom Post TypeDo you have any updates developments or suggestions that might allow your awesome plugin to work with CPT?
Forum: Plugins
In reply to: [JM Twitter Cards] Twitter Card Field in Custom Post TypeIt’s simply reproduced by attempting to use the plugin on a custom post type. I’m not sure if it’s a bug because the plugin works fine on regular posts, it’s just not coded to be available on custom post types.
Forum: Plugins
In reply to: [JM Twitter Cards] Twitter Card Field in Custom Post TypeI’m experiencing the same issue as efra_zorrito. The JM Twitter Cards option is visible on regular posts and pages, but not custom post types. Here is the screen shot to clarify any confusion. Thanks for an awesome plugin!
https://i61.tinypic.com/2wghf79.jpgForum: Plugins
In reply to: [Delete Me] Redirect to current pageEasy enough. Thanks for the prompt response!
Forum: Plugins
In reply to: [WP-Print] [Plugin: WP-Print Sociable] Hide From Print WP 3.9I was able to hide the Jetpack sharedaddy plugin by adding the following as filters on print.php
remove_filter('the_content', 'sharing_display', 19); remove_filter('the_excerpt', 'sharing_display', 19);
Thanks!
Forum: Plugins
In reply to: [WP Mobile Detect] Functions Code Examplei too would like an example of how to use wpmd_is_ to block a plugin