display blog category name through blog category id in magento2 [on hold]Magento2 coding style for files and folder namesMagento 2: Display list of specific categories on Home PageMagento 2: Display Custom attribute value under the product name on category pageMagento2: How to get total page number of category?Magento2 : How to get product type?Magento 2:Show category name in cart pagedisplay image in custom page in admin grid through image namethrough image name stored in database display image in custom tab in admin grid in magento2set custom attribute value according to product category in magento2Get child category name and image - Magento 2.3

How to back up a running remote server?

What's the polite way to say "I need to urinate"?

A non-technological, repeating, visible object in the sky, holding its position in the sky for hours

How to creep the reader out with what seems like a normal person?

Phrase for the opposite of "foolproof"

Toggle Overlays shortcut?

Please, smoke with good manners

Transfer over $10k

Where does the labelling of extrinsic semiconductors as "n" and "p" come from?

Advice on laptop battery life

Confused by notation of atomic number Z and mass number A on periodic table of elements

Will tsunami waves travel forever if there was no land?

Is creating your own "experiment" considered cheating during a physics exam?

Reverse the word in a string with the same order in javascript

Why does processed meat contain preservatives, while canned fish needs not?

Cannot populate data in lightning data table

gnu parallel how to use with ffmpeg

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

How to stop co-workers from teasing me because I know Russian?

Where did the extra Pym particles come from in Endgame?

You look catfish vs You look like a catfish

Illegal assignment from SObject to Contact

What does YCWCYODFTRFDTY mean?

Is it possible to Ready a spell to be cast just before the start of your next turn by having the trigger be an ally's attack?



display blog category name through blog category id in magento2 [on hold]


Magento2 coding style for files and folder namesMagento 2: Display list of specific categories on Home PageMagento 2: Display Custom attribute value under the product name on category pageMagento2: How to get total page number of category?Magento2 : How to get product type?Magento 2:Show category name in cart pagedisplay image in custom page in admin grid through image namethrough image name stored in database display image in custom tab in admin grid in magento2set custom attribute value according to product category in magento2Get child category name and image - Magento 2.3






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have a module for a blog in that I have different categories now I want print category name in phtml file through category id in magento2 I am getting category id
code to display category id



<?php
$categoryIds = $_post->getCategories();
print_r($categoryIds);
?>


through this code blog category id is coming now i want to display title










share|improve this question













put on hold as unclear what you're asking by Dhiren Vasoya, Jai, HelgeB, Muhammad Hasham, Manashvi Birla 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • which blog extension you are using?

    – magefms
    Apr 25 at 13:41











  • can you post whole phtml code

    – magefms
    Apr 25 at 13:48

















2















I have a module for a blog in that I have different categories now I want print category name in phtml file through category id in magento2 I am getting category id
code to display category id



<?php
$categoryIds = $_post->getCategories();
print_r($categoryIds);
?>


through this code blog category id is coming now i want to display title










share|improve this question













put on hold as unclear what you're asking by Dhiren Vasoya, Jai, HelgeB, Muhammad Hasham, Manashvi Birla 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • which blog extension you are using?

    – magefms
    Apr 25 at 13:41











  • can you post whole phtml code

    – magefms
    Apr 25 at 13:48













2












2








2








I have a module for a blog in that I have different categories now I want print category name in phtml file through category id in magento2 I am getting category id
code to display category id



<?php
$categoryIds = $_post->getCategories();
print_r($categoryIds);
?>


through this code blog category id is coming now i want to display title










share|improve this question














I have a module for a blog in that I have different categories now I want print category name in phtml file through category id in magento2 I am getting category id
code to display category id



<?php
$categoryIds = $_post->getCategories();
print_r($categoryIds);
?>


through this code blog category id is coming now i want to display title







magento2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 25 at 13:25









Ashish RamchandaniAshish Ramchandani

39711




39711




put on hold as unclear what you're asking by Dhiren Vasoya, Jai, HelgeB, Muhammad Hasham, Manashvi Birla 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Dhiren Vasoya, Jai, HelgeB, Muhammad Hasham, Manashvi Birla 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • which blog extension you are using?

    – magefms
    Apr 25 at 13:41











  • can you post whole phtml code

    – magefms
    Apr 25 at 13:48

















  • which blog extension you are using?

    – magefms
    Apr 25 at 13:41











  • can you post whole phtml code

    – magefms
    Apr 25 at 13:48
















which blog extension you are using?

– magefms
Apr 25 at 13:41





which blog extension you are using?

– magefms
Apr 25 at 13:41













can you post whole phtml code

– magefms
Apr 25 at 13:48





can you post whole phtml code

– magefms
Apr 25 at 13:48










1 Answer
1






active

oldest

votes


















0














You can try this:



$title = $_post->getParentCategories()->getTitle(); 
echo $title;





share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You can try this:



    $title = $_post->getParentCategories()->getTitle(); 
    echo $title;





    share|improve this answer



























      0














      You can try this:



      $title = $_post->getParentCategories()->getTitle(); 
      echo $title;





      share|improve this answer

























        0












        0








        0







        You can try this:



        $title = $_post->getParentCategories()->getTitle(); 
        echo $title;





        share|improve this answer













        You can try this:



        $title = $_post->getParentCategories()->getTitle(); 
        echo $title;






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 25 at 14:03









        magefmsmagefms

        2,8692529




        2,8692529













            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?