vtinath
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show published time on some posts, hide on othersThat’s it! Works swell. Thank you!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce – can’t get custom item sorting to take effectIt’s just a code I found on one of the instructions pages, it was the simplest and most minimal one I could find. But hey, thanks for those links! I found the solution in one of them!
Had to add
'orderby' => 'menu_order', 'order' => 'asc',into
$args = array( )Now it works as I intended. Thank you!
- This reply was modified 9 years, 6 months ago by vtinath.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce – can’t get custom item sorting to take effectOh yes, I forgot to mention. I tried that as well. No effect. 🙁
Reordering them by dragging changes the menu order successfully. But my frontend ignores this.
- This reply was modified 9 years, 6 months ago by vtinath.
Forum: Reviews
In reply to: [Add Meta Tags] Not bad butHi George,
yes, absolutely. I’ve worked out a temporary solution for this, I posted in the discussion you linked.Forum: Plugins
In reply to: [Add Meta Tags] My added Metadata for title is not appearing in OG:titleHi,
for now I’ve worked around this problem by editing the amt_opengraph.php file like this:
LINE 275
$metadata_arr[] = '<meta property="og:title" content="' . esc_attr( amt_process_paged( single_term_title( $prefix = '', $display = false ) ) ) . '" />';CHANGED TO:
$metadata_arr[] = '<meta property="og:title" content="' . esc_attr( amt_process_paged( single_term_title( $prefix = '', $display = false ).' | '.get_bloginfo('name') ) ) . '" />';this makes any Cateogory page og:title look like “Category name | Site name”, instead of just “Category name”.
And this part:
line 556
$metadata_arr[] = '<meta property="og:title" content="' . esc_attr( amt_process_paged( get_the_title($post->ID) ) ) . '" />';CHANGED TO
$metadata_arr[] = '<meta property="og:title" content="' . esc_attr( amt_process_paged( get_the_title($post->ID).' | '.get_bloginfo('name') ) ) . '" />';This makes all single posts and pages have a “Title | Site Name” in og:title facebook tags. By default the plugin only puts “Title” in fb tags.
I must make a disclaimer, I’m not really a php coder, I hardly really understand the syntax so maybe there are better ways of doing this, however this worked for my needs, maybe it will help someone until a new version of the plugin is available.
Forum: Hacks
In reply to: Adding theme support for post formats – I get some errorsThat seems to have worked! Thank you SO much!