Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

conditional-content

Home/ conditional-content

Conditional formatting on data fetched from MYSQL

Question
I'm not an expert in PHP and I'm trying to apply conditional formatting on data fetched from wpdb. To be fair, I'm trying to create shortcode for this. My motto is to fetch values for $previous_marks & $current_marks from the database and change the color of $current_marks according to if, el
0
conditional-content, mysql, php, shortcode, wpdb Mohit Singh 3 years 0 Answers 45 views

Give a condition to a wordpress menu item to change its offerid for each landing page I create

Question
So my wordpress site has a one header and one footer with a big CTA as one of the menu items. I want to create a bunch of landing pages but I want to be able to change the offerid in the url for each landing page for that big CTA so I can track. By offerid I mean
0
conditional-content, menus Bs3kg 3 years 0 Answers 72 views

Conditional Fields depending on checkboxes

Question
I'm currently trying the following (simplified objects): I have a bunch of "objects", which are cities. Each city has a relating country (even though I'm not sure how to implement this relation, yet), so for example I have the following cities: Stuttgart - Germany Berlin -
0
ajax, conditional-content, javascript, php, plugins nameless 3 years 0 Answers 73 views

Allow users to only CREATE one single (custom) post

Question
I created a custom post type with taxonomy and now want to allow users (of a specific user group) to post only one single post in a specific category. If the user has already posted a post, he can only edit his own post (I already have the PHP for that). I found a
0
conditional-content, content-restriction Jobo21 3 years 0 Answers 87 views

Prevent update of custom user profile meta field on the front end after 1st entry

Question
I have an e-learning website that issues an official certificate of completion when a students complete their training course. The user profile name on the account can be used as the student name when generating the certificate, but if the user updates their profile name it also updates the name
0
conditional-content, profiles, user-meta Carey Robinson 3 years 0 Answers 85 views

if customer buy some specific products then i want to put other condition into it

Question
if user buy my woocommerce products (id= 1900,1902,1938) . Then I want to put some other condition into it .. Can anyone help me with that please .
0
conditional-content, php, woocommerce Shanto Rk 3 years 0 Answers 100 views

A conditional button

Question
I wish to add a button to a page of my site that redirects the user to the signup page, if he is not a registered user, and to another page of the site, let's say Test_Page, if he is a registered user. How do I achieve this?
0
buttons, conditional-content, signup, user-registration Aashish Tripathi 3 years 0 Answers 75 views

How to display content If function exist/condition true?

Question
I've created my custom posts. Data from the same is displayed in let's say single-custom-post.php. Now to clean that file and to remove 100 lines of code, I want to make a new file (let's call it custom-header.php) and then just echo or call that content. Since I've b
0
conditional-content, functions Max 3 years 0 Answers 89 views

conditional statement for custom taxonomy

Question
Struggling to find out how to achieve this, if it is at all possible. The equivalent of is_category but for a custom taxonomy I've set up. The taxonomy category if which being Taxonomy Name with 2 taxonomies: Taxonomy One and Taxonomy Two. But t
0
conditional-content, conditional-tags, custom-taxonomy, php, taxonomy user1374796 3 years 0 Answers 97 views

Find and print first
  • entry from WordPress post in custom excerpt?
  • Question
    I want to create a custom excerpt for an education website. It has posts that contains and listing. I want to print the first child of ul and a first child of ol tag from the post. Currently, I have the following code that can print only the first paragraph. function wpd
    0
    conditional-content, excerpt, php Juniper Scott 3 years 0 Answers 83 views
    1 2 3
    • Recent
    • How to Fix the Error

      If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

      May 30, 2021
    • Onitir – IT Solutions WordPress theme

      Onitir - IT Solutions WordPress

      LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

      September 18, 2020
    • WhatsApp Chat – WordPress WhatsApp Chat plugin

      WhatsApp Chat - WordPress WhatsApp

      March 19, 2020
    • Tabula – Art, Music & Language School

      Tabula - Art, Music &

      Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

      March 19, 2020
    • Mega Posts Display for Elementor – Premium WordPress Plugin

      Mega Posts Display for Elementor

      Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

      March 19, 2020
    • Home
    • Ask Question
    • Themes
    • Plugins
    • Tutorials
    • Books

    Recent

    • How to Fix the Error

      If you get an error message “Error Establishing Database Connection,” this means ...

    • Onitir – IT Solutions WordPress theme

      Onitir - IT Solutions WordPress

      LIVE PREVIEWBUY ...

    • WhatsApp Chat – WordPress WhatsApp Chat plugin

      WhatsApp Chat - WordPress WhatsApp

    Popular Questions

    • How to update meta fields

      I have an app written in Delphi and Indy components for Windows ...

    • How to echo the_excerpt without

      In the code snippet below, I trying to get the_excerpt to be ...

    • 404 error - Page not

      ...

    Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.