peasantwizard
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] How to copy generateblocks pattern?Well darn this confused me too. Especially since it’s a separate Pattern library.
If you would have offered me the trade of having them built into the wp-admin or just keep it how it was on the GB website I would have said just leave it. Or at least have the option of either?
What was the rationale behind removing the ability to copy them from website?
Maybe I’m imagining it, I’m resisting the urge to get distracted and dig into it, but am I experiencing worse performance browsing patterns in wp-admin than I am on the Generateblocks site?
Ultimately I love Generateblocks and can build a pattern from visual reference about as fast as copying and customizing so this isn’t a big deal – but it does seem kinda pointless?
At the very least there should be a giant prompt right on the Pattern Library page. The fact that I had to search this, to find a forum post, to reference a doc, to understand a change I don’t even want, is a very minor frustration lol- This reply was modified 2 years ago by peasantwizard.
Forum: Plugins
In reply to: [Beautiful taxonomy filters] One taxonomy wont filter by itself.Unbelievably simple. Went all the way to Codeable to get a quote for some help and it was pointed out that I had a Page Draft contaminating the archive URL for poses.
Forum: Hacks
In reply to: Manipulate url from the_termsFinal implementation. Not pretty but it works. Thanks again for your help!
functions.php:
function get_btf_link( $taxonomy = '', $post = false ){ if ( ! $post ) { global $post; } $url = get_post_type_archive_link( $post->post_type ); $terms = get_the_terms( $post, $taxonomy); if ( $terms ) { foreach ( $terms as $term ) { $url = $taxonomy; break; } } return $url; }single-pose.php
<?php the_title(); ?> is a <a href="<?php echo home_url() ?>/poses/<?php echo get_btf_link('level') ?>/<?php $terms = wp_get_object_terms( $post->ID, 'level', array('fields'=>'slugs',)); echo strip_tags( $terms[0]); ?>"> <?php echo strip_tags(get_the_term_list($post->ID, 'level')); ?> </a>, <a href="<?php echo home_url() ?>/poses/<?php echo get_btf_link('position') ?>/<?php $terms = wp_get_object_terms( $post->ID, 'position', array('fields'=>'slugs',)); echo strip_tags( $terms[0]); ?>"> <?php echo strip_tags(get_the_term_list($post->ID, 'position')); ?> </a>, <a href="<?php echo home_url() ?>/poses/<?php echo get_btf_link('focus') ?>/<?php $terms = wp_get_object_terms( $post->ID, 'focus', array('fields'=>'slugs',)); echo strip_tags( $terms[0]); ?>"> <?php echo strip_tags(get_the_term_list($post->ID, 'focus')); ?> </a>- This reply was modified 9 years, 5 months ago by peasantwizard.
- This reply was modified 9 years, 5 months ago by peasantwizard.
- This reply was modified 9 years, 5 months ago by peasantwizard.
- This reply was modified 9 years, 5 months ago by peasantwizard.
- This reply was modified 9 years, 5 months ago by peasantwizard.
Forum: Hacks
In reply to: Manipulate url from the_termsI’ve realized it’s not working quite as intended…
For instance Focus: Hip Opener
<?php echo strip_tags(get_the_term_list($post->ID, 'focus')); ?>Returns ‘Hip Opener’ rather than ‘hip-opener’
I need some sort of sanitization. Should I look into building that into the function or do it in the template?
I’ve look at sanitize_term_field and str_replace and tried to integrate them unsuccessfully. My PHP skills are poor.
Forum: Hacks
In reply to: Manipulate url from the_termsThanks! Was a bit over my head but the plugins author helped me. This is the function:
function get_btf_link( $taxonomy = '', $post = false ){ if ( ! $post ) { global $post; } $url = get_post_type_archive_link( $post->post_type ); $terms = get_the_terms( $post, $taxonomy); if ( $terms ) { foreach ( $terms as $term ) { $url = 'poses' . '/' . $taxonomy . '/' . $term->name; break; } } return $url; }And here’s how I call it in the single page template:
<?php the_title(); ?> is a <a href="<?php echo home_url() ?>/<?php echo get_btf_link('level') ?>"><?php echo strip_tags( get_the_term_list($post->ID, 'level')); ?></a>Probably not the most elegant solution but working as intended.
- This reply was modified 9 years, 5 months ago by peasantwizard.
Forum: Themes and Templates
In reply to: [Sugar and Spice] Just purchased Pro – how long to receive?Totally my fault – I didn’t realize Paypal takes 6-8 days to get money from my account unless I link a credit card but…
“The Credit Card Verification System used by PayPal is currently unavailable. Please try to add your credit card at a later time. We apologize for this inconvenience.”
🙂
Forum: Themes and Templates
In reply to: [Sugar and Spice] Just purchased Pro – how long to receive?Thanks for the response – you were emailed the files after purchasing?
I’m in Canada and I believe the order was to Europe, not sure why credit card wasn’t accepted…