Bloke
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Slider Block Gutenslider] Responsive height image with contentSure its at devdotxatlaxnticinddotxnet/ just replace dot and remove the x.
Forum: Developing with WordPress
In reply to: Custom fields show for custom post type/* Increase Postmeta Limit.*/ add_filter( 'postmeta_form_limit', function( $limit ) { return 100; } );Forum: Developing with WordPress
In reply to: output value of meta query arraysThank you so much. This is just what I needed. I made some small formatting changes to have the file name show with active link to the file.
Forum: Plugins
In reply to: [Product Attachment for WooCommerce] Show attachment on shop page descriptionCould you point me to what file might have this code that outputs the downloads?
Forum: Developing with WordPress
In reply to: output value of meta query arrays$attachmenturl holds: 0 => string 'http://some_long_url_path/test.zip' (length=66) 1 => string 'http://some_long_url_path/somefile.pdf' (length=84) 2 => string 'http://some_long_url_path/file.pdf'' (length=68) $attachmentname holds: 0 => string 'Catalog' (length=12) 1 => string 'Brochure' (length=12) 2 => string 'Cover Image' (length=12) So I need each url and file name listed together.Forum: Plugins
In reply to: [Product Attachment for WooCommerce] Show attachment on shop page descriptionHere is an example. https://www.prodesigns.com/wordpress-themes/demo/ecommerce-gem/product-category/accessories/
Put my attachment links under each product. I have experimented withadd_action( 'woocommerce_after_shop_loop_item_title', 'myfunction', 9 );but its getting complicated.- This reply was modified 6 years, 2 months ago by Bloke.
Forum: Developing with WordPress
In reply to: Custom fields show for custom post typeThanks. Installing a plug is not the approach I’m looking for. I was trying to find a way for my plugin to work like the others have. Maybe I need to have meta boxes. Right now its “custom fields” at the bottom the page.
Forum: Developing with WordPress
In reply to: Order taxonomy query resultsThanks. I was able to sort them by state in order by adding another meta value of ‘rep_state’.
$args = array( 'post_type' => 'representative', 'post_status' => 'publish', 'orderby' => 'meta_value', 'meta_key' => 'rep_state', 'order' => 'asc', 'posts_per_page' => -1, 'tax_query' => array( array( 'taxonomy' => 'rep_locations', 'field' => 'slug', 'operator' => 'EXISTS', ) ) );Forum: Developing with WordPress
In reply to: Custom post type and taxonomiesMade some corrections and made it more simple and its working. Just registered the post type and the taxonomy with out all the arguments and labels and put it in one function. Also removed register_taxonomy_for_object_type().
function my_custom_post_reps() { register_post_type('representative', array( 'taxonomies' => array('rep_locations'), 'labels' => array( 'name' => __('Representatives'), 'singular_name' => __('Representative'), 'add_new' => __('Add a new Representative'), 'edit_item' => __('Edit Representative'), 'new_item' => __('New Representative'), 'view_item' => __('View Representative'), 'search_items' => __('Search in Representatives'), 'not_found' => __('No Representative found'), 'not_found_in_trash' => __('No Representative found in trash') ), 'has_archive' => true, 'show_in_rest' => true, 'hierarchical' => true, 'public' => true, 'menu_icon' => 'dashicons-location', 'capability_type' => 'post' )); register_taxonomy('rep_locations', array('representative'), array( 'labels' => array( 'name' => __('location list'), 'singular_name' => __('location list'), 'search_items' => __('Search locations'), 'all_items' => __('All locations'), 'parent_item' => __('Parent location'), 'parent_item_colon' => __('Parent location:'), 'edit_item' => __('Edit location'), 'update_item' => __('Update location'), 'add_new_item' => __('Add new location'), 'new_item_name' => __('New location name'), 'menu_name' => __('locations') ), 'show_ui' => true, 'show_in_rest' => true, 'query_var' => true, 'hierarchical' => true, 'show_admin_column' => true, 'rewrite' => array('slug' => 'rep_locations') )); } add_action( 'init', 'my_custom_post_reps' , 0 );Forum: Developing with WordPress
In reply to: Custom post type and taxonomiesThe editor seems to be ok. Does my code look ok? Something is missing because in the editor it should only show the taxonomy for the post type. It the drop down box says “categories” and it is just listing all categories plus my states (taxonomy).
Forum: Developing with WordPress
In reply to: Custom post type and taxonomiesNo, what I mean is in the admin, when I add a new ‘representative’ I want to choose from the ‘states’ taxonomy. Not all taxonomies. Maye I need to declare it first.
My code created the new post type of representative.
- This reply was modified 6 years, 3 months ago by Bloke.
Thanks. That seems to work. I added a external link to the “cap” product but didn’t see it until I clicked the button below description and reviews.
Forum: Plugins
In reply to: [WooCommerce] Media library is empty after transferI was able to solve the issue. In debug mode with debug log I was seeing there were WordPress files missing causing the media library to be empty.
Forum: Plugins
In reply to: [WooCommerce] Possible to have links to download documents from a productI am looking to list a specific PDF and zip files for each product. I also need control of what folder they are uploaded to. I understand the concept of turning off the cart.
I think everything has been cleared up. Google’s search console under the coverage section shows URLS that are valid and excluded. I have about 100 URLS that are “Crawled – Currently not indexed”. I assume this is old data because the last time it was crawled was May.
Just that one hack seemed took us down and hurt our rankings. We were on the first page and now we are nowhere to be found. We are indexed though. With no paid ads and very little effort we were getting good rankings and plenty of traffic. Now we have to reply on adwords. I just did a search and we are between pages 15 and 16. There are no fixes reported in Google Search Console. The hack happen back in May.
- This reply was modified 7 years, 7 months ago by Bloke.