shemakeswebsites
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] External Products in New TabUpdate – I found a plugin that will take care of this, though it’s not automatic and your specific affiliate links will need to be set for each product:
Forum: Plugins
In reply to: [WooCommerce] External Products in New TabHi there – thank you for your reply. But it doesn’t work.
The actual link on the products is the single page product link – the 1st snippet uses redirection to send users to a third-party site, but since it’s a redirection, the plugin you recommended doesn’t work.
This should really be easier to accomplish. There are so much requests for this. ??
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Front End StylingNevermind, I figured it out. ??
Forum: Developing with WordPress
In reply to: Category dropdown script issueHi, thank you for the reply. I don’t know what I’m doing. There is not multiple dropdowns on the page. ??
I found a snippet that would create a woocommerce category dropdown, and it worked perfectly as is. I have tried to modify that original snippet to just reflect post categories and I haven’t been successful.
I’ll try again. If I figure it out I will post the snippet here to help anyone else who may want to use this. Thank you.
- This reply was modified 5 years, 9 months ago by shemakeswebsites.
Forum: Developing with WordPress
In reply to: Category dropdown script issue??
Thank you for trying to help – this is just over my head and I’m not understanding.
Forum: Developing with WordPress
In reply to: Category dropdown script issueHi Joy – my name is Joy as well. ??
Thank you for your response…but unfortunately I don’t have any clue what I’m doing with this. I’ve tried to change the mentioned fields a few times but I still can’t get it to work. Also, I realized that I posted the wrong code snippet. I’m actually trying to reflect categories, not tags. This is what I last tried, with a slightly different script, but same results. The categories are reflected on the front-end in a dropdown, but there is no action when a category is selected.
add_shortcode( 'cat_dropdown', 'category_dropdown' ); function category_dropdown( $atts ) { // Attributes $atts = shortcode_atts( array( 'hide_empty' => '1', // or '0' 'show_count' => '0', // or '0' 'orderby' => 'name', // or 'order' 'taxonomy' => 'category', ), $atts, 'cat_dropdown' ); global $wp_query; $taxonomy = $atts['taxonomy']; $taxonomy_name = get_taxonomy( $taxonomy )->labels->singular_name; ob_start(); wp_dropdown_categories( array( 'hide_empty' => $atts['hide_empty'], 'show_count' => $atts['show_count'], 'orderby' => $atts['orderby'], 'selected' => isset( $wp_query->query_vars[$taxonomy] ) ? $wp_query->query_vars[$taxonomy] : '', 'show_option_none' => sprintf( __( 'Select a %s', 'post' ), $taxonomy_name ), 'option_none_value' => '', 'value_field' => 'slug', 'taxonomy' => $taxonomy, 'name' => $taxonomy, 'class' => 'dropdown_'.$taxonomy, ) ); ?> <script type='text/javascript'> jQuery(function($){ var select = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value > 0 ) { location.href = "<?php echo esc_url( home_url( '/' ) ); ?>?cat="+dropdown.options[dropdown.selectedIndex].value; } } dropdown.onchange = onCatChange; }); </script> <?php return ob_get_clean(); }
Forum: Plugins
In reply to: [WP Job Manager] Job Dashboard paginationGreat! Thank you for your help with this.
Forum: Plugins
In reply to: [WP Job Manager] Job Dashboard paginationThank you – but both of these responses are related to the [jobs] shortcode and listing. I am inquiring on the limit for the jobs dashboard. My current “Job Listing” setting is set at 10 – this shows accurately when using the jobs shortcode, but has no effect on the job dashboard shortcode.
The dashboard is where users would manage their listings from the front-end. Does anyone know how to adjust how much listings are shown in the job dashboard? The current amount shows 25 jobs per page.
Forum: Plugins
In reply to: [WP Job Manager] Remove the Preview Step from Submit ResumeForum: Fixing WordPress
In reply to: Redirection helpIf anyone can use this, here’s the code
Solution provided by [butlerblog][1]
add_action( 'template_redirect', 'redirect_to_specific_page_resume' ); function redirect_to_specific_page_resume() { /* * Only bother to check if the user is logged in * AND we're on page ID 479. Otherwise, there's no * reason to run the remaining logic. */ if ( is_user_logged_in() && is_page( 479 ) ) { // Get the current logged in user's ID $current_user_id = get_current_user_id(); // Count the user's posts for 'resume' CPT $user_post_count = (int) count_user_posts( $current_user_id, 'resume' ); // If the user has a 'resume' CPT published if ( $user_post_count > 1 ) { // Get the URL to redirect the user to. $url = get_permalink( 480 ); // Redirect the user. wp_redirect( $url ); exit(); } } }
[1]: https://wordpress.stackexchange.com/users/38603/butlerblog
Hi, just wondering if this has been added as an option yet. Thank you.
Forum: Fixing WordPress
In reply to: 301 Redirect Help@jdembowski Hello it’s me again. I’m not sure if I need to create a new post for the one that you archived, because now it’s not accessible so no one will respond to it. I would like the copy so that I can recreate it the Fixing WordPress forum.
As stated, the one that you archived was for a different matter and should have been just moved over – not archived. Thank you.
Forum: Fixing WordPress
In reply to: 301 Redirect HelpThanks Jan – the redirection question was not related to this post. This matter was resolved. Can you please unarchive and set in Fixing WordPress? I will ask my questions there next time.
Thank you.
Forum: Fixing WordPress
In reply to: 301 Redirect HelpThat worked! Thank you so much, I appreciate it.
Forum: Fixing WordPress
In reply to: 301 Redirect HelpHi Steven,
Thanks for the quick reply and suggestions. In theory, this should work…but nothing is happening on the front end. Using this doesn’t do any redirection at all.
Do you know if perhaps this is something my host needs to allow(regex).