Home >


  • Initial offset of number of posts in home page on the posts pageMarch 17

    I've got a problem. Im using WP_query on my static home page, and i've set up an 'archive' page (not like archives/tags etc) as my 'page 2' which has all my other posts on it. My home page is a total of 13 posts, but I was wondering, on the 'archive'

  • Translating add to cart woocommerce buttonMarch 17

    I am trying to translate add to cart button. I have 2 code snippets from woocommerce documentation here are they: FOR SINGLE PRODUCT - THIS ONE WORKS add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +

  • Basic template engineMarch 11

    I wanted to know how I can improve it. I mainly want to look at speed and performance, but if there are any improvements please give a suggestion. <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class template {

  • Basic SQL Help - Syntax error in Query ExpressionMarch 8

    I am beginning to learn SQL and I have made a basic .mdb table. I am trying to have a page where the user selects a book category and when they click on it, the next page will have the book content & author within the book category they chose. I curr

  • IGNORE INTO Mysql not ignoring record

    IGNORE INTO Mysql not ignoring recordMarch 8

    Here is my sql code to load csv file into database but i have lots of duplicate code generated by perl script. I want to ignore duplicate records while inserting into DB and it's work but every time it inserts one duplicate record you can see in scre

  • Switch between Jquery AJAX and PHP with target="_blank"March 7

    I have a search result displayed - in this there is an anchor tag like below. <div class="addfriend"> <a href="add_friend.php?from=kpkdhar22&id=2" id="2" target="_blank" onclick="addfriend(1, 2)&qu

  • Multiple strings for one VariablesMarch 7

    I am trying to create a system which allows for authorizing a transaction via a Admin ID. I wish to have multiple Admin ID's, to track which user made the transaction. $txtKnownAdminHash = "c0b71d437b9138ce3c1860b09b8923ebed6f8aeb3db4093458f38300f6f2

  • Custom Form Processing IssueJanuary 31

    I have created a form on my wordpress site, a function to process the data located in functions.php, and an action php file. I have tested the processing function and know it works, but I'm having trouble getting everything to communicate with wordpr

  • PHP Basic template engineJanuary 17

    Basic template system for PHP, I wanted to know how I can improove it? mainly I want to look and speed and performance, but if theres any improovements please give a suggestion below, thank you to everyone who helps. <?php defined("SECURE") o

  • VirusTotal explanation needed [on hold]January 15

    I have done a virustotalscan on a custom PHP script that I've just purchased for quite a lot and it gets detected by Rising AV as "JS:Trojan.Nemucod!1.A420 [F]". I have tried to look up the rising antivirus to do a scan myself but it's unfortuna

  • Simple Cloud using PHP [on hold]January 12

    I am looking for a simple Cloud written in PHP. It should be possible to integrate it in a existing design. Also you should be able to create accounts for your clients, and put files into their folders so that only those clients can access the files

  • Auto System Backup and SiteMap Update not working in MagentoJanuary 8

    I have Magento I have configured SiteMap update and System Backup in Magento on the backend. I have also setup the cron job to run. The cron job does work because I see the cron_schedule table getting updated. +-------------+----------------

  • Net beans debugger on mac not working

    Net beans debugger on mac not workingJanuary 6

    my net beans debugger on my mac is not working and I am not sure why. This is the php.ini file on my MAMP. Its located in my php5.6.2. folder. [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.6.2/lib/php/extensions/no-debug-non-zts-20131226/x

  • Test if fragment caching is workingDecember 19

    I had this fragment caching function added in the `function.php. it goes like this: function fragment_cache($key, $ttl, $function) { if ( is_user_logged_in() ) { call_user_func($function); return; } $key = apply_filters('fragment_cache_prefix','fragm

  • Display only text to WordPress loop without loosing the text formattingDecember 18

    I want to display text from content (only text) with the formating (paragraph, bold, italic.) on loop. When I am using this code: <?php echo mb_substr( strip_tags( get_the_excerpt() ),0,255); ?> or <?php the_excerpt(); ?> The text displayed wi

  • How would you connect to 100 different databases in wp-config.phpDecember 18

    We have a setup where we have 100 sites using exactly the same code base, and all files are stored on Amazon S3. But right now we are running 100 different WordPress installations. Now I was thinking just to change the settings in wp-config.php based

  • OPP Sign In/Out procedure in PHPDecember 9

    Preface As a self-taught student of Web-Development and Web Technologies, I created a simple sign in/out form in PHP, just for practice purposes and some fun! I read the O'reilly's book about PHP and I found one sentence there ( I really don't rememb

  • Getting Duplicate data in database table after executing the codeDecember 9

    Hi I am getting duplicate data in database table after executing the code.I am not able to find the reason. Please help me out $total_posts = array(); ini_set('display_errors', true); try { $stmt = $db->prepare("INSERT INTO timeline_row_wise (`fbn

  • PHP Configuration classDecember 9

    Created this little config class, any room for improvements? Think I have done an alright job but would like to know if any improovements could be made? <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class confi

  • Copy File With PHP By copy() function so slowDecember 6

    I use windows 7 ultimate and xampp in my computer. I use copy() function to copy file with PHP. But, When I tested it with same device and same file, copy function from Windows Explorer Faster than when I copy file with php by copy() function. (525MB

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.393 s.