Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Rúben Martins

    (@rubenmartins)

    To solve the problem temporarily i removed the function salon_date_hoursbefore from salon_date.php and placed the content directly in line 37
    <?php salon_date_hoursbefore($plugin->getAvailabilityHelper()->getHoursBeforeString()) ?>
    —————————–
    By
    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    <?php $hoursBefore = $plugin->getAvailabilityHelper()->getHoursBeforeString();
    if ($hoursBefore->from && $hoursBefore->to) : ?>
            <em><?php echo sprintf(
                    __('you may book from %s up to %s in advance', 'sln'),
                    $hoursBefore->from,
                    $hoursBefore->to
                ) ?></em>
        <?php elseif ($hoursBefore->from): ?>
            <em><?php echo sprintf(__('you may book %s in advance', 'sln'), $hoursBefore->from) ?></em>
        <?php
        elseif ($hoursBefore->to) : ?>
            <em><?php echo sprintf(__('you may book up to %s in advance', 'sln'), $hoursBefore->to) ?></em>
        <?php endif;

    And that solved the problem with redeclare salon_date_hoursbefore

    But now to try your solution i just removed the plugin and reinstaled from wordpress plugins directory and it works fine…
    i checked the salon_date.php file and the original function witch is causing the issue its ok…

    I don’t understand why now its working…

    Hi meridian62,

    If you just publish the city the marker will find the “center of the city” and place it there.
    It will solve that issue? with this solution the seekers will only know the city of the company and not the exact location.

    Thread Starter Rúben Martins

    (@rubenmartins)

    That would be great for integration with multi functionalities.

    Great work.

    Thread Starter Rúben Martins

    (@rubenmartins)

    And its not possible to add something new to add multiple images and let the thumbnail stay still?

    My idea is to add for example the plugin Attachments https://www.ads-software.com/plugins/attachments/ add with that add multiple images in a new metabox but your plugins its not based in custom post type https://codex.www.ads-software.com/Function_Reference/register_post_type.

    How can i make it custom post type so i can add that function? And if the plugin changes to post type it will be more easy to add functionalities from scratch or another plugins or modules paid from you.
    It is possible?

    Tanks Tijmen for the great plugin.

    Hello jittarao

    Please check the permissions of the folders
    assets
    wp-content
    cache
    minify
    [and subfolders]

    It must be 755.

    Also you can try to reset the definitions of the w3 total cache in “Performance” -> “General Settings” and in the scrolling to the bottom of the page click in “Reset configuration: Restore Default Settings”

    I’m glad for hear that.

    Is this solved StephInSeattle ?

    As @rollingwolf said you need to add “$query->” to “have_posts()”and “the_post()” in order to work right

    Also you will need to add this parameter to the query
    ‘orderby’ => ‘title’, ‘order’ => ‘DESC’
    as i already inserted in your code. Also if you what to specify the category you can also add
    ‘cat’ => ’10’ [and change the 10 for the number id of the category]
    OR
    ‘category_name’ => ‘test’ [and change the test for the name category]

    For more filter to the query you can find in https://codex.www.ads-software.com/Class_Reference/WP_Query

    [FULL CODE BELLOW]

    <?php get_header(); ?>

    <?php // Get Theme Options from Database
    $theme_options = leeway_theme_options();
    ?>

    <div id=”wrap” class=”clearfix”>

    <section id=”content” class=”primary” role=”main”>

    $args = array(‘orderby’ => ‘title’, ‘order’ => ‘DESC’);
    $query = new WP_Query($args);

    <h2 id=”category-title” class=”archive-title”>
    <?php printf(__(‘Category Archives: %s’, ‘leeway’), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’); ?>
    </h2>

    <?php if (isset($theme_album)) : $theme_album->ta_albumFormat(); else : ?>
    <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>

    get_template_part( ‘content’, $theme_options[‘posts_length’] );

    <?php endwhile; else : ?>
    <p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
    <?php endif; ?>
    <?php endif; ?>

Viewing 8 replies - 16 through 23 (of 23 total)