Jump to content

Search the Community

Showing results for tags 'wordpress'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 12 results

  1. Hi, I am a bit stuck with the code below for my Wordpress site: <?php $user = wp_get_current_user(); $allowed_roles = array('subscriber', 'visitor'); if ( array_intersect($allowed_roles, $user->roles ) ) echo '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXXX" crossorigin="anonymous"></script>' ?> I want the Adsense code only be shown in the HEAD section for site visitors and the user role SUBSCRIBER. I tried 'visitor' but that didn't worked. Thanks in advance.
  2. I have Hotel website, naturevilas.com, after updating a PHP version code there is undefined error occur automatic, I don't know why this error occur and I have a big problem because this error can effect my business. I am also going software company in my local area but still I am facing a problem. I don't know how to solve this problem. Error on My Website showing in Font Screen: Bolt Error Back to merchant website link: naturevilas.com Home Page Room Page Select a Room CheckOut Page Error Page What I have tried: I have tried, update my PHP Code or back to old version of PHP Code(Backup file) and Connect with my local area software company, but still facing a problem.
  3. I have coded a custom movie theme for wordpress but need a custom imdb plugin, as I am at present manually typing in all the movie data. I have tried most of the imdb plugins that are out there but to my dismay they don't hit the mark for me. I have also tried coding a plugin myself but I am dreadful as I know nothing about plugin development or scrapers or python, so I'm fked lol need loads of help but am also willing to pay for some ones services. Thanks in advance
  4. I have used this tutorial here (https://codex.wordpress.org/Integrating_WordPress_with_Your_Website) as a guide to set up non-wordpress pages to access some wordpress resources on non-wordpress pages. Eg I can view wordpress posts on non-wordpress page. I have wordpress installed in a sub-folder( ./root - PHP pages ./root/wordpres - Wordpress installation} In addition, I need to be able to detect if a user is logged into wordpress on the non-wordpress page. I am using this code below on non-wordpress pages for that: if(is_user_logged_in()){ $current_user = wp_get_current_user(); /** * @example Safe usage: $current_user = wp_get_current_user(); * if ( !($current_user instanceof WP_User) ) * return; */ echo 'Username: ' . $current_user->user_login . '<br />'; echo 'User email: ' . $current_user->user_email . '<br />'; echo 'User first name: ' . $current_user->user_firstname . '<br />'; echo 'User last name: ' . $current_user->user_lastname . '<br />'; echo 'User display name: ' . $current_user->display_name . '<br />'; echo 'User ID: ' . $current_user->ID . '<br />'; echo get_avatar( $current_user->user_email, 32 ). '<br />'; echo '<hr />'; } else{ echo 'Not logged-in'; } Even though I am logged into wordpress, when I navigate to the non-wordpress page, I see wordpress posts listed but, the is_user_logged_in() function returns false and prints 'Not logged-in'!!! Is there a way of achieving this besides the approach I have adopted? I need guidance to resolve this.
  5. however, we are halfway into 2017 without hardly a peep about a Twenty Eighteen theme. well this makes me curious as to what is in store for us. I personally have not seen much of anything about it, so I have decided to ask here love to hear from you
  6. Hi, I am very very new to php and I'm building a Wordpress site using a theme so please bear with me if I ask any obvious questions. My site is running php 5.6 and Wordpress is up to date. In the theme options a php file called theme_options.php should give various items to place on the page but I am getting this error Warning: Invalid argument supplied for foreach() in on line 1114 /websites/123reg/LinuxPackage21/co/ok/es/cookesproperty.co.uk/public_html/dev/wp-content/themes/homely/admin/theme_options.php I have looked at line 1114 and this has this of code <?php $property_detail_items = get_option('rypecore_property_detail_items', $property_detail_items_default); $property_detail_items_order = get_option('rypecore_property_detail_items_order', $property_detail_items_order_default); foreach($property_detail_items_order as $value) { ?> The last line is line 1114 Is there anything obvious I am missing? Thanks for any help at all! Lisa
  7. Good afternoon, I have a Wordpress website and I'm currently about to update my Woocommerce plugin but was wondering if I could have some advice please? I have the main Woocommerce plugin, Woocommerce Admin and Woocommerce Stripe Gateway. I'm wondering which order would be best to update them in? Does anyone have experience in doing this? Many thanks for any help you can give me. BSD
  8. I am developed a custom PHP page with filters, addto cart module, music playlist everything. How can i implement it into WordPress? I am a newbie, any help thanks. My custom PHP work directory structure : location : public_html/my_work website URL : website.com/my_work Everything working good, but my wordpress heaer and footer missing, thats what i am asking to how to implement my custom development multiple PHP page work into Wordpress.
  9. What I am trying to do is extract the value of a variable from a hyperlink. The code that I have tried is as follows... #hyperlink creation <a href="<?php echo home_url(); ?>/title.php?title=<?php echo $args[$x]; ?>"><?php echo $args[$a]; ?></a> #value extract header(" echo home_url(); /" . $_GET ['title'] . ".php" ); $title = $_GET['title']; any help appreciated
  10. I wish to hire a php developer to design a imdb plugin that will slot into the way that I have designed my wordpress theme. Hope here from you soon Steven www.scottiescotsman.com
  11. Hi, could you please help me with an issue? I want to hide the price for one product in the WooCommerce emails that I send to the clients Only If the quantity of a product is over 50. For all the other items I want the price to be shown. For example, the order has 2 products, one with 30pcs quantity that displays price, and the other with 120pcs quantity but with a text 'some text' instead of the price. I modified the email-order-items.php, <?PHP echo $order->get_formatted_line_subtotal($item); ?> But, It's not working. I'm sure is this line but I don't know how to continue and I'm stuck. Thank you so much.
  12. Hello Experts, I need help on a wordpress plugin "Easy Student Results". I installed this plugin for my ITI Institute results and when entered all institution trades, courses, students separated with trades and then started adding results on the basis of trades then this plugin doesn't show results of all trades students. It only shows results of firstly created trades students results. All other trades students results are showing unavailability error. So i need your help. https://wordpress.org/plugins/easy-student-results Thank you Manish Bajpai
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.