Posted in wordpress wp theme development

word press theme Dev basic things

1. get the post categories… //$categories = get_categories(); //all category $categories = get_the_category($post->ID); //post category if($categories !=null){ foreach($categories as $category) { echo ‘<a href=”‘ ….

Continue Reading... word press theme Dev basic things
Posted in wordpress

How to Fix Custom Fields Not Showing in WordPress

REF: https://www.wpbeginner.com/wp-tutorials/how-to-fix-custom-fields-not-showing-in-wordpress/   The Custom Fields option was missing from the WordPress screen options. After some investigation, we were able to find the cause of…

Continue Reading... How to Fix Custom Fields Not Showing in WordPress
Posted in Android Development

Non Swipeable ViewPager

REF: https://stackoverflow.com/questions/9650265/how-do-disable-paging-by-swiping-with-finger-in-viewpager-but-still-be-able-to-s package com.m27lab.messmanagerpro.app.classes; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.animation.DecelerateInterpolator; import android.widget.Scroller; import androidx.viewpager.widget.ViewPager; import java.lang.reflect.Field; public class NonSwipeableViewPager extends ViewPager { public…

Continue Reading... Non Swipeable ViewPager
Posted in Android Development

Option menu or Popup menu change background

  Ref: https://stackoverflow.com/questions/21231404/how-to-change-background-color-popup-menu-android/30731151 Add Popup-Menu style to your App-Theme: <style name=”AppTheme” parent=”android:Theme.Light”> <item name=”android:popupMenuStyle”>@style/PopupMenu</item> </style> <style name=”PopupMenu” parent=”@android:style/Widget.PopupMenu”> <item name=”android:popupBackground”>@android:color/white</item> </style>  

Continue Reading... Option menu or Popup menu change background