473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How do I add more than one post id to this "if" statement?

Hi guys, forgive my ignorance with php but I am learning as I go along. I copied this social media code for my wordpress website to try and avoid using a plugin and it works fine but I wanted to exclude some post/page ids from the code showing on my site and tried this:
Expand|Select|Wrap|Line Numbers
  1. if(is_singular() && !is_page(14,17,223)){  // sample: 234 is a page id
. It works with just one id but not more. I've attached the function as a text file in case you need to see the whole code. Thanks for your help.
Attached Files
File Type: txt socialmediafunction.txt (2.7 KB, 727 views)
Feb 22 '16 #1
0 1127

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Steve | last post by:
Hello, I've been a PHP programmer for a number of years and have just started to learn JS. My Employer (a water analysis lab) wants what should be a very simple .js written that basically takes...
1
by: panchaga | last post by:
Hi, could any one help me with this select statement. i am using as part of JSP page. i want to use wild cards as part of this select. i am getting error when i use % along with the name. ...
1
by: foo | last post by:
i want to select a list of all user names and customer names. all names are in table 1 above. what does this sql statement look like? assume two tables: 1. t1, columns id (unique generated...
0
by: crljenica | last post by:
I need to turn this select statement into a delete statemen. In other words, I want the results of the select statement deleted from the tables. I have never used a delete statement with a minus...
1
by: aakcse | last post by:
Help needed in understanding the below update statement update results_key set result = temp.tally from(
6
by: Michele | last post by:
Hi there, I'm relative new to Python and I discovered that there's one single way to cycle over an integer variable with for: for i in range(0,10,1) which is equivalent to: for (i = 0; i < 10;...
3
anu401
by: anu401 | last post by:
System.out.println()---in this printing statement why we use (.)i.e dot inbetween system.out and out.println? please reply this question was asked in viva session
1
by: Jonah Portas | last post by:
I cant seem to find the problem in this code... ifstream fin; fin.open("C:/Users/Josh/Desktop/TriNode/NumList.txt"); int first; fin >> first; cout << first;
1
by: anand000925 | last post by:
How to convert this sql statement to storeproc? select "Dly_DC_LostSlsSnpsht_v"."PlntCd" "Plnt_Id_Cd" , "Dly_DC_LostSlsSnpsht_v"."DivCd" "Div_Cd" , "GlblCatSum"."GlblCatSumCd" "Gbl_Cat_Sum_Cd"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.