• Resolved thomas20ss

    (@thomas20ss)


    Hi, I have the same issue that some other users mentioned – a new order stopped saving after sorting. It has been like this for a few months now and I have been waiting for an update to the plugin for the new WordPress version, but if the plugin works for you, could your developers please have a look at my website? It’s looking like a mess without the sorting option. I have already tried the Health Check mode and I don’t see anything else that may be wrong. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support beatrice12

    (@beatrice12)

    Hello @thomas20ss,

    Thanks for reaching out to us!

    Can you please let me know which plugins and theme you use and also your WordPress version and PHP version?

    Warmly,

    Beatrice.

    Thread Starter thomas20ss

    (@thomas20ss)

    Hi Beatrice,

    Tried to upload a screenshot, but it doesn’t work. its :

    Simple Custom Post OrderDeactivate?|?TroubleshootOrder Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.Version 2.5.6 | By?Colorlib?|?

    Newest WordPress version (this plugin stopped since the last two minor updates) and PHP 7.4. One of our plugins is causing issues with 8.0 so I’d need to figure out how to replace it before upgrading again.

    Hope this helps.

    Plugin Support beatrice12

    (@beatrice12)

    Hello @thomas20ss,

    Can you please send us some screenshots with the list of your active plugins and also with the settings for the SCPO plugin? Please also let us know which theme you use and also send us a video with the steps you follow. You can upload them here via Imgur.

    Warmly,

    Beatrice.

    the support of ‘page-attributes’ is required to be first added to the post type generated manually, in order, to later call the ‘menu_order‘ directive. This directives allows the order to be done according to defined setting and not according to default post creation time.

    You may read more about it, here

    So the adding of the element to be controlled on functions.php would now look like this:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');

    And the placing on the website of the fetched content would now look like this:

    <div class="tabcontent-box" id="id">
    	<ul class="ul-content">
    	<?php
    	$query = new WP_Query(array(
    		'post_type' => 'faq_questions',
    		'orderby' => 'menu_order',
    		'order' => 'ASC',
    		'tax_query' => array(
    			array(
    				'taxonomy' => $current_term->taxonomy,
    				'field' => 'slug',
    				'terms' =>	$current_term->slug
    
    			)
    		)
    	));
    	while ( $query->have_posts() ) : $query->the_post(); ?>
    		<li>
    			<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    		</li>
    	<?php endwhile; ?>
    	</ul>
    </div>

    And now… the magic returns, and moving by drag-and-drop of the elements with this plugin is back to working.

    You may also manually change the numbering of menu_order on the WordPress POST data base, according the post_type of the highlighted chosen by you name. This is required when you have more posts that can be seen on the WordPress panel.

    @ziegel to confirm, if I wanted to change this for products I would simply change faq to product and ‘list_’ to ‘get_’?

    function get_products() {
        register_post_type('product',
            array(
                'labels' => array(
                    'name' => __('product'),
                    'singular_name' => __('product')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'get_products');

    Hi @torivt65,

    I’m not an experience developer. What I do for my self, is test solutions I find. Usually, after few trial an errors testing, which may take few hours, I solve various issues I confront.

    Reading your code, it looks Ok, however I can’t confirm it. I’m not aware of any other deep coded elements that I may have, which you may lack.

    Please note, that I do have the second element which is the “call” for the elements, and the configuration of them being called according to menu_order, which is now (again) controlled by either the plugin ‘drag and drop’ feature, or by changing the order on the wp_post MySQL data base for the element ‘faq_questions‘.

    Please do also note, that faq_questions was created as an element which duplicates WordPress “Post” feature. Possibly something alike should be done for you “products”, or possibly it was already have been done.

    The function you suggested went in the functions.php file.

    The “list_faq” which you see on functions.php, is now seen by me in two places, and not one. I have it there in:

    function list_faq() {
        register_post_type('faq_questions',
            array(
                'labels' => array(
                    'name' => __('FAQ'),
                    'singular_name' => __('FAQ')
                ),
                'public' => true,
                'has_archive' => true,
                'supports' => array('title', 'editor', 'thumbnail', 'excerpt' , 'page-attributes')
            )
        );
    }
    
    add_action('init', 'list_faq');
    
    function faq_taxonomy() {
        register_taxonomy(
            'faq_cat',  //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).
            array('faq_questions'),        //post type name
            array(
                'hierarchical' => true,
                'label' => 'Categories',  //Display name
                'query_var' => true
            )
        );
    }
    
    add_action('init', 'faq_taxonomy');

    I’m now looking into the WordPress panel to see where it’s mentioned there.

    I see it in the “Duplicate Post Options” under settigns, which creates the FAQ for me (there is also a Yoast plugin with a similar name).

    I also have a hidden private page named FAQ under the WordPress pages. That page is used by three PHP page files, for categories, and faq pages.

    Those are:

    archive-faq_questions.php which lists all faq questions in a certain language, however not seen.

    single-faq_questions.php which is used for the question to be opened.

    taxonomy-faq_cat.php which is used for the categories of the FAQ

    I also have four special header files:

    one for categories

    second for faq single questions

    and a duplication of the above for a second language translation.

    On the php files of pages I can define a different title and description for each FAQ according to its post number and category, which is called by the associated header specific file later on.

    This is how the file ‘single-faq_questions.php’ looks like:

    <?php 
    if (!defined('ABSPATH')) exit; 
     
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
    header("Cache-Control: no-cache"); 
    header("Pragma: no-cache"); 
     
     
    global $post; 
     
    if ($post->post_type == 'faq_questions'){ 
     
     if ($post->ID == "2715") { 
     $changed_title = "Currenge – FAQ - Beneficiary Bank Account"; 
     $changed_description = "How do I let Currenge know of beneficiary bank account to which it is asked to transfer money to?";} 
     
     elseif ($post->ID == "6693") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?? ?????"; 
     $changed_description = "???? ???? ?????? ?? ?????&#x27, ???? ????? ???? ??? ???? ?????? ?????";} 
     
     elseif ($post->ID == "2716") { 
     $changed_title = "Currenge – FAQ - Transfer Out of Money"; 
     $changed_description = "How is the transfer out of my money done";} 
     
     elseif ($post->ID == "6264") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ??????&#x27"; 
     $changed_description = "???? ????? ????? ?????? ????? ??????&#x27";} 
     
     elseif ($post->ID == "2717") { 
     $changed_title = "Currenge – FAQ - Beneficiary bank details to provide"; 
     $changed_description = "What beneficiary bank details do I need to provide";} 
     
     elseif ($post->ID == "6697") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ????? ??? ?? ?????"; 
     $changed_description = "??? ????? ?? ????? ????? ??? ???? ??????&#x27";} 
     
     
     elseif ($post->ID == "2718") { 
     $changed_title = "Currenge – FAQ - Money Transfer Duration"; 
     $changed_description = "How long would it take for my money to reach my beneficiary";} 
     
     elseif ($post->ID == "6698") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ??? ?????"; 
     $changed_description = "??? ??? ???? ????? ?? ???? ????? ???? ?? ????? ???? ?? ?????";} 
     
     elseif ($post->ID == "2719") { 
     $changed_title = "Currenge – FAQ - Transaction request confirmation"; 
     $changed_description = "Can I get a confirmation for my transaction request execution";} 
     
     elseif ($post->ID == "6699") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?????"; 
     $changed_description = "??? ???? ???? ????? ?? ????? ????? ???????";} 
     
     elseif ($post->ID == "2720") { 
     $changed_title = "Currenge – FAQ - Served Countries"; 
     $changed_description = "What countries can I transfer out money to";} 
     
     elseif ($post->ID == "6700") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ????? ??????? ?????"; 
     $changed_description = "???? ?????? ???? ?????? ?????";} 
     
     elseif ($post->ID == "2721") { 
     $changed_title = "Currenge – FAQ - Transaction on the recipient bank account"; 
     $changed_description = "How would the transaction look like on the recipient bank account";} 
     
     elseif ($post->ID == "6701") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ?????? ?????"; 
     $changed_description = "???? ????? ??????? ????? ?????? ???? ?? ?????";} 
     
     elseif ($post->ID == "2722") { 
     $changed_title = "Currenge – FAQ - Preventing tax deduction on money transferred out of Israel"; 
     $changed_description = "What documents should I provide so there is no tax deduction on money transferred out of Israel";} 
     
     elseif ($post->ID == "6702") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ?????? ????? ?? ????? ?????? ?? ???? ??????"; 
     $changed_description = "???? ?????? ??? ???? ?? ??? ???? ????? ?? ????? ?? ????? ???????? ?? ???? ??????";} 
     
     elseif ($post->ID == "2710") { 
     $changed_title = "Currenge – FAQ - Currenge Conversion Process"; 
     $changed_description = "How does Currenge convert to-be transferred money";} 
     
     elseif ($post->ID == "6703") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ??????"; 
     $changed_description = "???? ?????&#x27 ????? ????? ???? ??????";} 
     
     elseif ($post->ID == "2711") { 
     $changed_title = "Currenge – FAQ - Currenge Conversion Rate"; 
     $changed_description = "Currenge - ON WHAT RATE CURRENGE CONVERTS MONEY FOR ME, IN A TRANSACTION INTEGRATED WITH A TRANSFER?";} 
     
     elseif ($post->ID == "6704") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ???? ??????"; 
     $changed_description = "????? ??? ?????&#x27 ???? ????? ?????, ????? ??????? ??????";} 
     
     
     elseif ($post->ID == "2713") { 
     $changed_title = "Currenge – FAQ - Converted Currencieis"; 
     $changed_description = "What currencies Currenge can convert, as part of a transfer";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ??????"; 
     $changed_description = "???? ?????? ?????&#x27 ????? ????? ?????? ?????";} 
     
     
     elseif ($post->ID == "2704") { 
     $changed_title = "Currenge – FAQ - Submitting written transaction request"; 
     $changed_description = "How should I submit my written transaction request to Currenge";} 
     
     elseif ($post->ID == "6706") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ???? ?????? ????"; 
     $changed_description = "???? ??? ?????? ??????&#x27 ?? ???? ?????? ????";} 
     
     
     elseif ($post->ID == "2705") { 
     $changed_title = "Currenge – FAQ - Transfering Money into Currenge Bank Account"; 
     $changed_description = "How should money be sent into Currenge bank account";} 
     
     elseif ($post->ID == "6708") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ????? ?? ????? ???? ?? ?????'"; 
     $changed_description = "???? ?? ?????? ????? ?? ????? ???? ?? ?????&#x27";} 
     
     elseif ($post->ID == "2712") { 
     $changed_title = "Currenge – FAQ - Saving calculator indicator assumptions"; 
     $changed_description = "What are assumptions underlying the potential saving calculator indicator";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ?????? ?????? ???????"; 
     $changed_description = "??? ????? ??????? ??????? ????? ????????? ?? ?????? ?????? ?????????";} 
     
     elseif ($post->ID == "2708") { 
     $changed_title = "Currenge – FAQ - Accepted Currencies"; 
     $changed_description = "What currencies does Currenge accept";} 
     
     elseif ($post->ID == "6711") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ???????"; 
     $changed_description = "???? ?????? ?????&#x27 ?????";} 
     
     elseif ($post->ID == "2683") { 
     $changed_title = "Currenge – FAQ - About Currenge"; 
     $changed_description = "About Currenge";} 
     
     elseif ($post->ID == "6694") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????"; 
     $changed_description = "????? ?????&#x27";} 
     
     elseif ($post->ID == "6129") { 
     $changed_title = "Currenge – FAQ - Currenge better rates than a bank branch"; 
     $changed_description = "What enables Currenge offering better rates than a bank branch, converting your money, integrally with a transfer";} 
     
     elseif ($post->ID == "6725") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????? ???? ?? ???? ????"; 
     $changed_description = "?? ????? ??????&#x27 ????? ???? ???? ????? ???? ??? ???? ???";} 
     
     
     elseif ($post->ID == "6130") { 
     $changed_title = "Currenge – FAQ - The way to compare Curreng and the bank"; 
     $changed_description = "How should I compare the costs of converting FX at a bank to converting it with Currenge";} 
     
     elseif ($post->ID == "6729") { 
     $changed_title = "?????&#x27 - ???? ????? - ???? ?????? ?????? ??? ???? ???? ??????&#x27"; 
     $changed_description = "???? ???? ?????? ?? ?????? ???? ???? ????? ??? ?? ??? ???? ??????? ?????&#x27";} 
     
     elseif ($post->ID == "2691") { 
     $changed_title = "Currenge – FAQ - Fees"; 
     $changed_description = "What are fees Currenge may charge, and how much money may it save for me";} 
     
     elseif ($post->ID == "6722") { 
     $changed_title = "?????&#x27 - ???? ????? - ?????"; 
     $changed_description = "?? ????? ??????&#x27 ???? ???? ??? ??? ????? ?????";} 
     
     elseif ($post->ID == "2696") { 
     $changed_title = "Currenge – FAQ - When to Register"; 
     $changed_description = "Do I need to register at Currenge prior to transacting";} 
     
     elseif ($post->ID == "6713") { 
     $changed_title = "?????&#x27 - ???? ????? - ??? ??????"; 
     $changed_description = "??? ???? ???? ?????? ??? ?????&#x27 ???? ????? ????";} 
     
     elseif ($post->ID == "2699") { 
     $changed_title = "Currenge – FAQ - Firm Registration"; 
     $changed_description = "What is needed of a firm, so it can register with Currenge";} 
     
     elseif ($post->ID == "6716") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ????"; 
     $changed_description = "?? ???? ????? ??? ?????? ??? ?????&#x27";} 
     
     elseif ($post->ID == "2700") { 
     $changed_title = "Currenge – FAQ - Individual Registration"; 
     $changed_description = "What is needed of an individual, so it can register with Currenge";} 
     
     elseif ($post->ID == "6717") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ????"; 
     $changed_description = "?? ???? ???? ???? ??? ?????? ??? ?????&#x27";} 
     
     elseif ($post->ID == "2702") { 
     $changed_title = "Currenge – FAQ - Contacting Currenge Urgently"; 
     $changed_description = "How can I contact Currenge with an urgent matter";} 
     
     elseif ($post->ID == "6719") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??? ?????? ????"; 
     $changed_description = "???? ???? ????? ??? ?? ?????&#x27 ?????? ????";} 
     
     elseif ($post->ID == "2703") { 
     $changed_title = "Currenge – FAQ - Additional Questions"; 
     $changed_description = "I have another question which isn’t listed here, what should I do";} 
     
     elseif ($post->ID == "6721") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??????"; 
     $changed_description = "?? ?? ???? ????? ????? ?????? ???. ?? ??? ???? ?????";} 
     
     
     
     elseif ($post->ID == "10020") { 
     $changed_title = "Currenge – FAQ - Client Online Identification and Verification"; 
     $changed_description = "Main stages in online identification and verification of a Currenge client";} 
     
     elseif ($post->ID == "10018") { 
     $changed_title = "?????&#x27 - ???? ????? - ????? ??????? ?????? ?????"; 
     $changed_description = "????? ??????? ?????? ????? ?? ???? ?????&#x27";} 
     
     
     elseif ($my_current_lang=='he') { 
     $changed_title = "?????&#x27 - ???? ?????"; 
     $changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ??? ?????? ?????? ??????? ?????&#x27.";} 
     
     else{ 
     $changed_title = "Currenge – FAQ Support Center"; 
     $changed_description = "Welcome to the Currenge Support center. Please choose a support category, from the below.";} 
     
     } 
     
    $robots_index = 'noarchive'; 
     
     
    $my_current_lang = apply_filters( 'wpml_current_language', NULL );  
    if ($my_current_lang=='en'){ 
     include 'header-faq-question.php'; 
     //get_header(''); 
    } 
    if ($my_current_lang=='he'){ 
     include 'header-faq-question-he.php'; 
     //get_header('he'); 
    } 
     
     
    ?> 
     
     
     
     
    <div class="container"> 
     
    <?php  ob_start(); ?> 
    [vc_row css=".vc_custom_1526390415971{padding-top: 84px;background-color: #ffffff !important;}"] 
     [vc_column el_class="faq hidden-sm"] 
     [vc_column_text el_class="faq-header"] 
     <h1 class="page-titel" id="page-titel-english" style="text-align: center;">Frequently Asked Questions</h1> 
     <h1 class="page-titel" id="page-titel-hebrew" style="text-align: center;">?????</h1> 
     [/vc_column_text] 
     [/vc_column] 
    [/vc_row] 
    [vc_section full_width="stretch_row" el_class="faq-box"] 
     [vc_row] 
     [vc_column] 
     [vc_column_text] 
     
     <div class="container-box desktop-f"> 
     <div class="tab hidden-sm"> 
     <ul> 
     <?php 
     
     $current_post = get_queried_object(); 
     $current_terms = get_the_terms($current_post->ID, 'faq_cat'); 
     $link = '..'; 
     if (count($current_terms)) { 
     $current_term = $current_terms[0]; 
     $link = get_term_link($current_term); 
     } 
     // var_dump($current_term); 
     $terms = get_terms(array( 
     'taxonomy' => 'faq_cat', 
     'hide_empty' => true, 
     'orderby' => 'id', 
     'order' => 'ASC', 
     )); 
     foreach ($terms as $term): 
     ?> 
     <li> 
     <a href="<?php echo get_term_link($term) ?>" class="tablinks<?php echo $term->term_id === $current_term->term_id ? ' active' : '' ?>"><?php echo $term->name ?></a> 
     </li> 
     <?php endforeach; ?> 
     </ul> 
     <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-english">Submit a Question</a><a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-hebrew">???? ?????</a> 
     </div> 
     <div class="tabcontent-box" id="single_faq"> 
     <ul class="ul-content"> 
     <?php 
     while ( have_posts() ) : the_post(); ?> 
     <li> 
     <div class="tabcontent-text-box tabcontent-text-box-vi active"> 
     <div class="tabcontent-text"> 
     <?php 
     the_title('<h3 class="titel">', '</h3>'); 
     the_content(); 
     ?> 
     <p class="question hidden-sm" id="question-english-fourth">Do you have any question regarding the above answer? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="click toggle-form-faq">Click here</span></p> 
     <p class="question hidden-sm" id="question-hebrew-fourth">??? ?? ?? ???? ?????? ?????? ?????  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="click toggle-form-faq">???? ???</span></p> 
     <div class="tabcontent-text__form hidden-sm hidden this_is_english"> 
     <?php 
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     <div class="tabcontent-text__form tabcontent-text__form-hebrew hidden-sm hidden this_is_hebrew"> 
     <?php 
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div></div> 
     <?php 
     
     ?> 
     <a href="<?php echo $link ?>" class="a-btn-tr hidden-sm user-question-btn-toggle-english">Back</a> 
     <a href="<?php echo $link ?>" class="a-btn-tr hidden-sm user-question-btn-toggle-hebrew 
    ">?????</a> 
     </div> 
     </li> 
     <?php endwhile; wp_reset_query(); ?> 
     </ul> 
     <div class="user-question hidden"> 
     <div class="user-question-form"> 
     <?php  
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     <div class="user-question-form user-question-form-hebrew" style="direction: rtl!important; text-align: right!important;"> 
     <?php  
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div> 
     <div class="user-question-back"> 
     <a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-english">Back</a> 
     <a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-hebrew">?????</a> 
     </div> 
     </div> 
     </div> 
     </div> 
     <p class="question question-sm" id="question-english-second" style="background-color: #f3f3f3">Do you have any question regarding the above answer?<br> <span class="click toggle-form-faq" style="display: inline-block; margin-top: 10px">Click here</span></p> 
     <p class="question question-sm" id="question-hebrew-second" style="background-color: #f3f3f3">??? ?? ?? ???? ?????? ?????? ????? <br> <span class="click toggle-form-faq" style="display: inline-block; margin-top: 10px">???? ???</span></p> 
     <div class="tabcontent-text tabcontent-text-sm question-sm"> 
     <div class="tabcontent-text__form tabcontent-text__form-sm hidden this_is_english"> 
     <?php 
     if ($my_current_lang=='en'){ 
     echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');} 
     ?> 
     </div> 
     
     
     <div class="tabcontent-text__form tabcontent-text__form-hebrew tabcontent-text__form-sm tabcontent-text__form-sm-hebrew hidden this_is_hebrew"> 
     <?php 
     if ($my_current_lang=='he'){ 
     echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');} 
     ?> 
     </div></div> 
     <div class="mobile-f"></div> 
     [/vc_column_text] 
     [/vc_column] 
     [/vc_row] 
     [/vc_section] 
     
     
     
    <?php 
    $content = ob_get_clean(); 
    echo do_shortcode($content); 
    ?> 
    </div> 
     
     
     <div class="thanks-message"> 
     <div class="thanks-message-x"> 
     <img src="<?php echo site_url() ?>/wp-content/uploads/2018/04/Icon-30-X-sign-white-2.svg" alt="X Icon"> 
     </div> 
     <div class="thanks-message-text text-center thank_you_message_english"> 
     <p class="thanks-message-text-titel thank_you_message_english">Thank you for your message</p> 
     <p  class="thank_you_message_english">We will respond as soon as possible.</p> 
     </div> 
     <div class="thanks-message-text text-center thank_you_message_hebrew"> 
     <p class="thanks-message-text-titel thank_you_message_hebre">???? ??? ?? ???????</p> 
     <p class="thank_you_message_hebre">??? ????? ????? ?? ?????.</p> 
     </div> 
     </div> 
     
    <?php get_footer(); 
    

    So… I guess this plugin would go back to well functioning, given the above fix suggested and adjusted to your site, only if you had it well configured BEFORE it stopped working, however possibly not otherwise.

    Hi?@torivt65,

    ?‘taxonomy-faq_cat.php‘ file , is where in our theme, the call for the faq questions according to their categories is done.

    On this file’s very beginning you may see the PHP call:

    $current_term_meta = get_queried_object();

    According to explanation, the ‘object’ in questions, which is clalled, is that, which is the subject of the PHP page, where that function is activated. See the comment below.

    Here is its content:

    <?php
    if (!defined('ABSPATH')) exit;
    
    
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Cache-Control: no-cache");
    header("Pragma: no-cache");
    
    $current_term_meta = get_queried_object();
    //$current_terms_meta = get_the_terms($current_term_meta->ID, 'faq_cat');
    
    
    
    if (!empty($current_term_meta)){
    	
    	if ($current_term_meta->term_id == "6") {
    		$changed_title = "Currenge – FAQ - Getting Started";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how to start using Currenge as a client.";}
    		
    	elseif ($current_term_meta->term_id == "23") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ?? ????? ???? ?? ?????&#x27.";}		
    		
    	elseif ($current_term_meta->term_id == "7") {
    		$changed_title = "Currenge – FAQ - Sending in Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how to send money for Currenge to facilitate your requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "24") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ??? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ????? ??? ?? ?????&#x27, ????? ???? ???? ?????? ????.";}		
    		
    		
    	elseif ($current_term_meta->term_id == "8") {
    		$changed_title = "Currenge – FAQ - Converting Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how we may convert your money, as part of a requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "25") {
    		$changed_title = "?????&#x27 - ???? ????? - ???? ??? ????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ?? ?????&#x27 ????? ????? ??? ????, ???? ?????? ???? ?????? ????.";}		
    		
    	elseif ($current_term_meta->term_id == "9") {
    		$changed_title = "Currenge – FAQ - Sending out Money";
    		$changed_description = "Here we will provide answers to questions you may have, regarding how we may transfer your money, as part of a requested transaction.";}
    		
    	elseif ($current_term_meta->term_id == "26") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ??? ??????";
    		$changed_description = "??? ???? ?????? ?????? ????? ?? ???, ???? ???? ?? ?????&#x27 ????? ?????? ??? ???? ?? ????, ???? ?????? ???? ?????? ????.";}
    		
    	elseif ($current_term_meta->term_id == "2683") {
    		$changed_title = "Currenge – FAQ - About Currenge";
    		$changed_description = "Currenge App is a money transfer and convert service, at a ‘tiny’ spread, operating from Israel.";}
    		
    	elseif ($current_term_meta->term_id == "6694") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ?????&#x27";
    		$changed_description = "????????' ??? ????????? ????? ????? ????? ?????, ??????? ??? ????, ?????? ??????.";}		
    		
    		
    	elseif ($current_term_meta->term_id == "2691") {
    		$changed_title = "Currenge – FAQ - Saving";
    		$changed_description = "How much money Currenge may instantly enable me of saving, and what fee it charges?";}
    		
    	elseif ($current_term_meta->term_id == "6722") {
    		$changed_title = "?????&#x27 - ???? ????? - ??????";
    		$changed_description = "??? ??? ????????' ????? ????? ?? ????? ????? ?????, ????? ???? ??? ?????";}		
    		
    		
    	elseif ($current_term_meta->term_id == "2695") {
    		$changed_title = "Currenge – FAQ - Offering better rates than a bank branch";
    		$changed_description = "What enables Currenge offering better rates than a bank branch, converting your money, integrally with a transfer?";}
    		
    	elseif ($current_term_meta->term_id == "6725") {
    		$changed_title = "?????&#x27 - ???? ????? - ????? ????? ?????? ???";
    		$changed_description = "?? ????? ?????????' ????? ???? ??? ????? ???? ??? ???? ????";}		
    
    			
    	elseif ($current_term_meta->term_id == "2711") {
    		$changed_title = "Currenge – FAQ - Transactions's Currency Rate";
    		$changed_description = "On what rate Currenge converts money for me, in a transaction integrated with a transfer?";}
    		
    	elseif ($current_term_meta->term_id == "670") {
    		$changed_title = "?????&#x27 - ???? ????? - ??? ???? ?? ????? ????";
    		$changed_description = "????? ??? ?????' ???? ????? ?????, ????? ??????? ???????";}			
    			
    
    	elseif ($my_current_lang=='he') {
    		$changed_title = "?????&#x27 - ???? ?????";
    		$changed_description = "??? ???? ?????? ?????? ????? ??? ???, ???? ????? ??? ?????? ?????? ??????? ?????&#x27.";
    	}
    	
    	
    	else{
    		$changed_title = "Currenge – FAQ Support Center";
    		$changed_description = "Welcome to the Currenge Support center. Please choose a support category, from the categories listed below.";}
    
    	}
    
    
    $robots_index = 'noarchive';
    
    $my_current_lang = apply_filters( 'wpml_current_language', NULL ); 
    if ($my_current_lang=='en'){
    	include 'header-faq-category.php';
    	//get_header('faq-category');
    }
    if ($my_current_lang=='he'){
    	include 'header-faq-category-he.php';	
    	//get_header('faq-category-he');
    }
    
    ?>
    
    
    
    
    <?php $current_term = get_queried_object(); ?>
    
    <div class="container">
    
    <?php  ob_start(); ?>
    [vc_row custom_class="hidden-xs" css=".vc_custom_1526390415971{padding-top: 84px;background-color: #ffffff !important;}"]
    	[vc_column el_class="faq"]
    		[vc_column_text el_class="faq-header"]
    			<h1 class="page-titel" style="text-align: center;"><?php echo $current_term->name ?></h1>
    		[/vc_column_text]
    	[/vc_column]
    [/vc_row]
    [vc_section full_width="stretch_row" el_class="faq-box"]
    	[vc_row]
    		[vc_column]
    			[vc_column_text]
    
    			<div class="container-box desktop-f">
    				<div class="tab hidden-sm">
    					<ul>
    						<?php
    
    						// var_dump($current_term);
    						$terms = get_terms(array(
    							'taxonomy' => 'faq_cat',
    							'hide_empty' => true,
    							'orderby' => 'id',
    							'order' => 'ASC',
    						));
    						foreach ($terms as $term):
    						?>
    						<li>
    							<a href="<?php echo get_term_link($term) ?>" class="tablinks<?php echo $term->term_id === $current_term->term_id ? ' active' : '' ?>"><?php echo $term->name ?></a>
    						</li>
    					<?php endforeach; ?>
    					</ul>
    					<a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-english">Submit a Question</a><a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle submit-hebrew">???? ?????</a>
    				</div>
    				<div class="tabcontent-box" id="taxonomy-faq-identify">
    					<ul class="ul-content">
    					<?php
    					$query = new WP_Query(array(
    						'post_type' => 'faq_questions',
    						'orderby' => 'menu_order',
    						'order' => 'ASC',
    						'tax_query' => array(
    							array( 
    								'taxonomy' => $current_term->taxonomy,
    								'field' => 'slug',
    								'terms' =>	$current_term->slug
    
    							)
    						)
    					));
    					while ( $query->have_posts() ) : $query->the_post(); ?>
    						<li>
    							<a href="<?php the_permalink() ?>" class="tabcontent-link"><?php the_title() ?></a>
    						</li>
    					<?php endwhile; ?>
    					</ul>
    					<div class="user-question hidden">
    						<div class="user-question-form">
    							<?php 
    							if ($my_current_lang=='en'){
    								echo do_shortcode('[contact-form-7 id="270" title="faq" html_id="faq-contact-form"]');}								
    							?>
    						</div>
    						<div class="user-question-form user-question-form-hebrew" style="direction: rtl!important; text-align: right!important;">
    							<?php 		
    							if ($my_current_lang=='he'){
    								echo do_shortcode('[contact-form-7 id="6818" title="faq_hebrew" html_id="faq-contact-form-hebrew" lang="he-IL" dir="rtl"]');}						
    							?>
    						</div>
    
    						<div class="user-question-back">
    							<a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-english">Back</a>
    							<a href="javascript: void 0" class="a-btn-tr user-question-btn-toggle user-question-btn-toggle-hebrew">?????</a>
    						</div>
    					</div>
    				</div>
    			</div>
    			<div class="mobile-f"></div>
    			[/vc_column_text]
    		[/vc_column]
    		[/vc_row]
    	[/vc_section]
    	
    <?php
    $content = ob_get_clean();
    echo do_shortcode($content);
    ?>
    </div>
    <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle user-question-btn-sm submit-english">Submit a Question</a>
    <a href="javascript: void 0" class="a-btn user-question-btn user-question-btn-toggle user-question-btn-sm submit-hebrew">???? ?????</a>
    
    	<div class="thanks-message">
    		<div class="thanks-message-x">
    			<img src="<?php echo site_url() ?>/wp-content/uploads/2018/04/Icon-30-X-sign-white-2.svg" alt="X Icon">
    		</div>
    	<div class="thanks-message-text text-center thank_you_message_english">
    		<p class="thanks-message-text-titel thank_you_message_english">Thank you for your message</p>
    		<p  class="thank_you_message_english">We will respond as soon as possible.</p>
    	</div>
    	<div class="thanks-message-text text-center thank_you_message_hebrew">
    		<p class="thanks-message-text-titel thank_you_message_hebre">???? ??? ?? ???????</p>
    		<p class="thank_you_message_hebre">??? ????? ????? ?? ?????.</p>
    	</div>
    	</div>
    
    <?php get_footer();
    

    Comment regarding the function on the top of the above PHP file:

    The “currently-queried object” means the object that is the subject of the webpage:
    
    – On a category archive, tag archive, or other taxonomy archive page, it will return the WP_Term object of the current category, tag, or other term.
    – If you have set a posts page where your basic posts are displayed, get_queried_object() will return the WP_Post object of that page.
    – On post type archive pages, it will return the WP_Post_Type object of the given post type.
    – On an author archive page, it will return the WP_User object of that author.
    – On any singular page (a single post, a single page, or a post in a custom post type), it will return the WP_Post object of that post or page.
    
    Be careful not to use get_queried_object() and get_post() or global $post interchangeably. On a singular post, those will all return the same thing. But, for example, if you have a page called “Blog” that displays your posts, get_queried_object() will return the “Blog” page whereas get_post() will return the current post in the loop.

    @ziegel thanks so much for your incredibly detailed response!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘New order does not save after sorting’ is closed to new replies.