Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Welcome @gwenm ,

    if you need more suggestions, related to any issue please let me know.
    I am also available on Slack.

    Hello @raymallon,

    To achieve version control of page or post content based on a specific date in WordPress, you can use the built-in Revisions feature. WordPress automatically saves revisions of pages and posts, allowing you to restore or view past versions based on the date. However, to retrieve and display a specific revision programmatically, you can use the following solution:

    Use wp_get_post_revisions() to retrieve past revisions of a post or page based on the ID.

    Add this function to your functions.php file to display the content of a specific revision by date:

    function get_revision_by_date( $post_id, $revision_date ) {
    $revisions = wp_get_post_revisions( $post_id );
    foreach ( $revisions as $revision ) {
    if ( $revision->post_date <= $revision_date ) { return apply_filters( ‘the_content’, $revision->post_content );
    }
    }
    return ‘No revision found for this date.’;
    }
    To call this function, pass the post ID and the desired date (e.g., get_revision_by_date(123, ‘2023-10-01 00:00:00’);).
    This retrieves and displays the content for the closest revision on or before the specified date.

    Hello @gwenm ,

    To display audio in the excerpt on your homepage, you can use the the_excerpt filter to add the audio shortcode dynamically. Here’s how you can customize it in your theme’s functions.php:
    function add_audio_to_excerpt( $excerpt ) {
    // Add your audio shortcode before or after the excerpt content
    $audio = ‘[audio src="your-audio-file.mp3"]‘;
    return $audio . $excerpt; // This will prepend the audio to the excerpt
    }
    add_filter(‘the_excerpt’, ‘add_audio_to_excerpt’);

    Replace “your-audio-file.mp3” with the URL of your audio file. This will display the audio player in the excerpt on the homepage. If you want to manage different audio files per post, you could add custom fields for the audio URL and dynamically output it.

    Hello @anitabot ,As per my opinion try to bellow suggestion,

    To add a show/hide toggle for the WordPress admin login box on your custom intranet page, you can use jQuery and some CSS to achieve this. Here’s a simple solution:

    [1] Add this jQuery code to toggle the login form visibility:

    jQuery(document).ready(function($) {
    $(‘#toggle-wp-login’).click(function() {
    $(‘#wp-admin-login-box’).toggle();
    });
    });

    [2] Add this HTML button and login form structure:

    Show/Hide WP Admin Login

    This will add a button to show or hide the WordPress login form. Ensure you enqueue jQuery correctly in your theme for it to work.

    thanks best regard

    This issue is likely caused by the slider’s CSS or JavaScript conflicting with caching. To resolve it, try the following steps:

    -> Clear cache: Ensure your browser and any caching plugins (e.g., WP Super Cache, W3 Total Cache) are cleared.
    -> Check responsiveness settings: Ensure that the slider is set to be full-width in its settings and responsive across devices.
    -> CSS adjustments: Add custom CSS like width: 100%; or max-width: 100%; to force the slider to stretch fully.
    -> Defer JavaScript: If your site uses JavaScript deferral, ensure that the slider’s JS isn’t delayed by cache loading.
    You can use a plugin like “Autoptimize” to fine-tune these settings.

    Also, try disabling plugins one by one to find potential conflicts.

    Hello @sacconi

    To dynamically insert the current year into your WordPress code, use PHP’s date() function. Here’s an example:

    $current_year = date(‘Y’);
    $titolo_display_price = '<div class="titolo_listino_prezzi" ID="titolo_listino_prezzi">' . '<h3 class="titolo_affitti">' . esc_html__('Rates ' . $current_year . ' in &euro;/ week:', 'mysite-plugin') . '</h3>' . '</div>';

    try to above example, may be it will help you.

    Hello @matthewbaynham I hope you are well,

    As per my suggestion,

    To sell your WordPress plugin while avoiding legal complexities, many developers in Germany use services like eRecht24 or Trusted Shops, which provide legally compliant templates for GDPR and Terms & Conditions. These services help ensure compliance with German law. If you don’t want to handle the sales directly, platforms like CodeCanyon or Envato handle the legal aspects, as they act as the seller. By selling through these platforms, you can focus on the plugin, while the platform handles the legal text and transactions.

    Hello @michellepace

    As per my suggestion, For your needs, WP Simple Timesheet or WP Timesheet and Attendance (pro version) could work well. Both allow login, entering/editing start/end times and viewing total hours worked. They offer shortcodes for front-end form integration, hiding the WordPress dashboard. The pro versions include advanced features like tracking employee rates and generating monthly payment reports.

    Hello @michellelau

    As per my investigation, For a simple calendar plugin that allows registered members to make entries visible to all, consider using The Events Calendar or Simple Calendar. Both plugins support basic event management, with The Events Calendar offering community event submission through the “Community Events” add-on. You can use Advanced Custom Fields (ACF) to display additional information, such as who made the booking. Paid Memberships Pro can handle access control, ensuring only registered members can create and view entries. Minor customization may be needed to meet all your specific requirements.

    Hello @hasiburrahman55 ,
    Switching from Blogger to WordPress is beneficial as WordPress offers greater flexibility, customization, and control over your website. You’ll have access to a wide range of themes, plugins, and SEO tools (like RankMath), making it more powerful for scaling and optimizing your site. WordPress also allows for better ownership and advanced features compared to Blogger. To migrate, export your Blogger content, import it into WordPress, set up redirects to preserve traffic, and install essential plugins. This process ensures you retain your content while upgrading your site’s functionality and design.

    Hello @amitban1979,
    I’ve reviewed your issue and, based on my investigation, The issue with Google not indexing your product images is likely due to disabling the Jetpack CDN, which may have affected image URLs or accessibility. To resolve this, you can either re-enable the Jetpack CDN to restore proper image delivery or ensure that your images are accessible without it. Check for any blocking rules in robots.txt or RankMath settings that might prevent image indexing. Also, ensure that RankMath is generating an image sitemap and submitting it to Google Search Console for re-indexing. Lastly, clear any cache and monitor the issue in the console.

    Hello @ecoalfred as per your requirement please follow bellow steps.
    To connect your WordPress website to the MariaDB 10 database on Synology NAS, follow these steps:

    [1] Create a Database in MariaDB 10:

    Access phpMyAdmin via Synology to create a database for WordPress.

    Go to phpMyAdmin (available in Synology’s package center), and under MariaDB 10, create a new database.

    [2] Configure WordPress to Connect to MariaDB:

    During WordPress installation, you’ll be prompted to enter the database details. Use the database name, username, password, and localhost (or your Synology IP) as the database host.

    If WordPress is already installed, edit the wp-config.php file in your WordPress directory to include the correct database credentials:

    define(‘DB_NAME’, ‘your_database_name’);

    define(‘DB_USER’, ‘your_username’);

    define(‘DB_PASSWORD’, ‘your_password’);

    define(‘DB_HOST’, ‘localhost’); // Or you can use Synology NAS IP

    [3] Update/Edit Data in the Database via the Website:

    Use the WordPress admin dashboard to manage content, or for custom database interactions, you can create custom plugins or use a database management plugin like WP phpMyAdmin to interact directly with the database tables. This will connect your website to MariaDB, and allow you to manage the database from within WordPress or Synology’s phpMyAdmin.

    Hello @luvu11

    To sync your production site to the development environment, first, back up both the production and development sites. Copy all files from the production server to the dev environment and export/import the production database. After that, update the database URLs to match the dev environment using tools like WP-CLI or phpMyAdmin. Finally, check .htaccess and wp-config.php for any environment-specific settings, and test the dev site thoroughly.

    Thread Starter Dilip Modhavadiya

    (@dilip2615)

    Thread Starter Dilip Modhavadiya

    (@dilip2615)

    Hello @vinod-dalvi Thank you for your suggestion .
    As per your suggestion, I asked the question in custom-work(https://ivorysearch.com/custom-work/).

    but i can’t get the answer. still i am waiting the answer form ivorysearch side.

Viewing 15 replies - 1 through 15 (of 19 total)