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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form