aeamarkg
Forum Replies Created
-
Amazing! That did it. Many many thanks.
My apologies for not including that before. Yes, that yields the same results.
Forum: Plugins
In reply to: [Custom Content Shortcode] Pass Taxonomy as Variable?Boom! That did it. Many many thanks. Knowing that setting will be a huge help in the future.
Forum: Plugins
In reply to: [Custom Content Shortcode] Pass Taxonomy as Variable?Thanks, everyone. These 2 actually create the same issue, but in 2 different ways. I have 13 possible “states” as the State_Taxonomy. So, in each solution, it’s looping through all 13 and giving me 12 results for each, or a total of 166.
My CPT “city” only has 1 state_taxonomy per entry. So, the desired result is to pass its state_taxonomy to the loop and grab 12 random results that have a matching state_taxonomy.
As an addendum: my original code grabs only 12 results, but those results do not match the state_taxonomy of the CPT City.
- This reply was modified 4 years, 1 month ago by aeamarkg.
Forum: Developing with WordPress
In reply to: Use add_rewrite_endpoint without the trailing slashYes, I have a good reason for it. A permalink like this “domain.com/category/post-deals” is perfectly legitimate. The issue is with the function being used. It appends “deals” after a slash in the permalink. I would rather it append “deals” to the end of the permalink not create the additional slash, yet still be available to vars.
No problem. Solved this by adding a custom class to the menu item and a adding the user role as a class to the body. Then simply targeting through .role-administrator .custom-class{display:none;}. Thank you.