mogeh
Forum Replies Created
-
Thanks so much.
I have applied the code to the respective form but the taxonomy
values are not being returned in the select field.The only thing i changed in your code was replacing
taxonomy="category"
withtaxonomy="property-type"[select categories include_blank] [cf7-recordset id="taxonomy_records" type="database" callback="format_hierarchy" query="SELECT terms.term_id as id,terms.name as name,term_taxonomy.parent as parent FROM {wpdb.terms} terms JOIN {wpdb.term_taxonomy} term_taxonomy ON (term_taxonomy.term_id=terms.term_id) WHERE 1=1 AND taxonomy="property-type" ORDER BY term_taxonomy.parent ASC"] <code style="display:none"><script>function format_hierarchy(records) { var hierarchical_records = {}, roots = [], formatted_records = []; records.forEach(function(item) {hierarchical_records[item.id] = item;}); Object.keys(hierarchical_records).forEach( function(id){ var item = hierarchical_records[id]; if(item.parent == 0) roots.push(item); else if(item.parent in hierarchical_records){ var p = hierarchical_records[item.parent]; if (!('children' in p)) { p.children = []; } p.children.push(item); } } ); function indentation(roots, n){ for(var i in roots){ roots[i]['formatted_name'] = '-'.repeat(n)+' '+roots[i]['name']; formatted_records.push(roots[i]); if('children' in roots[i]) indentation(roots[i]['children'], n+1); } }; indentation(roots, 0); return formatted_records; }</script></code> [cf7-link-field recordset="taxonomy_records" field="categories" value="name" text="formatted_name" keep-options]I highly appreciate your time and effort.
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsThanks so much for your reply and kind consideration.
you can try viewing the screenshots again
For number 1, I decided to set a general title for the product tabs in the global settings of the plugin.
Regarding fixing the number 2 issue, I’m highly thankful for the
expected solution.I appreciate!
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsHello Sark,
Greetings and trust my message meets you well.
I once more appreciate you for your great plugin and support.1. The issue i had with the tabs title not displaying on the single products tabs has come up again after i thought it has been solved with your last update.
I also noticed that the option to enter a custom title for each tab group is no longer displaying if i choose to display the Admin custom fields group in the product tab area.
see the screenshot below:
https://prnt.sc/KOyFm6_QwrVg2.
Second issue
As you can see from the screenshot below:
https://prnt.sc/tqsQq7bGfrTx
I’m using the plugin to create product specifications, I want to know if there is a way to hide empty fields on the fronend?3. I also seek your advice if using the plugin in creating products specification won’t affect the performance?
Many thanks and appreciate your kind help.
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsThanks so much.
I applied your update and the problem was solved.Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsThanks for your assistance.
After i changed the fields location back to
Before Add To Cart Button
, the tabs title now displays.
I believe a permanent solution will be found to the bug soon.
I’m currently working on my local machine.
Thanks a lot.
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsOkay. I did as you instructed in your response above and the
tab title now shows.But i also noticed that all the fields(products fields, variations fields, checkout fields and admin fields) are now showing in the same location, which is unusual.
I also noticed that if i choose that the admin fields should display in the products tabs, the content of the fields are displayed in two locations: above the products image and in the tabs content.
I have tested on the default twenty twenty-two theme and it’s the same there too.I guess there’s some conflict in the output code and will gladly await the fix.
I really appreciate you help and best wishes.
Forum: Plugins
In reply to: [WC Fields Factory] How to display admin fields in product tabsThanks so much for the fast response which was very helpful.
The tabs content now displays as expected.
But the tabs title doesn’t display anything though i added a title text in the tab title option of the admin field group.
I also noticed that if i choose that the admin fields should display in the products tabs, the content of the fields are displayed in two locations: above the products image and in the tabs content.
I have tested on the default twenty twenty-two theme and it’s the same there too.Maybe i’m missing something.
Thanks so much in advance.
- This reply was modified 4 years ago by mogeh.
Thanks. it worked.
Thanks for the reply
1=> i tried using:
$type = get_post_meta($this->id, 'ad_type', true);
but it was returning errors(Fatal error: Uncaught Error: Using
$this when not in object context in C:\wamp\www\propertyforest.com\wp-content\themes\prop-forest-child\classified-listing\content-listing.php on line 11and
I then modified it to:
$type = get_post_meta($listing->ID, 'ad_type', true);
and tried displaying it using:<?php echo esc_attr( $type );?>But it was returning no results.
Kindly, help.
Thanks
Thanks. Your help is very appreciated as the problem has been solved.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesThanks @quicoto for your time so far.
If i used
.thumbs-rating-up { display: none; }, it hides the button but
what i want to achieve is to hide the text before the votes counts; that was why i was requesting for the wrapping of the text in a span so that it can be easily hidden with CSS.I will look for a permanent solution to it with time.
Thanks and my best regards.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesHello @quicoto ,
Thanks for your prompt response always and
blessing us with this great plugin.back then when the vote up and vote down button were wrapped with a span tag as
seen below:
<span class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(78, 1);" data-text="Vote Up +">2</span>
it was easy to hide. But after updating recently, i found out that the HTML structure has changed and i have been struggling with hiding the text again.I wish to make some request:
1. Can you kindly wrap the buttons text in a span tag so that it can be easily hidden with CSS, like below:
<button class="thumbs-rating-up thumbs-rating-voted" onclick="thumbs_rating_vote(389, 1);"><span>Vote Up +</span>1</button>
And release an update.I can easily modify the plugin files directly and bump up the version number as suggested; But what if a critical update is released for the plugin? It means i will miss it and other relevant subsequent updates.
2. kindly provide help with overriding the “thumbs_rating_getlink” function.
Though not good with PHP, i did some research and learnt that
if ( ! function_exists( 'thumbs_rating_getlink' ) ): function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true) { } endif;is a pluggable and that i could override it by doing the following:
function thumbs_rating_getlink($post_ID = '', $type_of_vote = '', $wrapper = true) { }I have tried it and other ways of overriding a function but i keep getting errors.
The fault could be from my side because of my deficiency in PHP, i will highly appreciate your help.
Thanks @quicoto in advance.
Forum: Plugins
In reply to: [Thumbs Rating] Show button without number of votesHello @squasher ,
Can you kindly assist with your solution?
I’m try to achieve the same results but I’m finding it
very difficult overriding the “thumbs_rating_getlink” function
from my child’s theme function.phpAny other help plus that of @squasher in solving this problem is highly appreciated
Thanks in advance
Forum: Plugins
In reply to: [Essential Real Estate] How to override plugin in child themeThanks so much!
Great plugin and i really appreciate.
Thank you so much!!!